org.drools.semantics.python
Class ExprCondition

java.lang.Object
  |
  +--org.drools.semantics.python.Interp
        |
        +--org.drools.semantics.python.Eval
              |
              +--org.drools.semantics.python.ExprCondition
All Implemented Interfaces:
Condition, ConfigurableCondition, SemanticComponent

public class ExprCondition
extends Eval
implements ConfigurableCondition

Python expression semantics Condition.

Version:
$Id: ExprCondition.java,v 1.3 2003/03/25 19:47:32 tdiesler Exp $
Author:
bob mcwhirter

Constructor Summary
ExprCondition()
          Construct, partially.
ExprCondition(java.lang.String expr)
          Construct.
 
Method Summary
 boolean isAllowed(Tuple tuple)
          Determine if the supplied Tuple is allowed by this condition.
 java.lang.String toString()
          Produce a debug string.
 
Methods inherited from class org.drools.semantics.python.Eval
configure, evaluate, evaluate, evaluate, getExpression, getRequiredTupleMembers, setExpression
 
Methods inherited from class org.drools.semantics.python.Interp
getCode, getNode, getText, setText, setUpDictionary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.drools.smf.ConfigurableCondition
configure
 
Methods inherited from interface org.drools.spi.Condition
getRequiredTupleMembers
 

Constructor Detail

ExprCondition

public ExprCondition(java.lang.String expr)
Construct.
Parameters:
expr - The expression.

ExprCondition

public ExprCondition()
Construct, partially.
Method Detail

isAllowed

public boolean isAllowed(Tuple tuple)
                  throws ConditionException
Determine if the supplied Tuple is allowed by this condition.
Specified by:
isAllowed in interface Condition
Parameters:
tuple - The Tuple to test.
Returns:
true if the Tuple passes this condition, else false.
Throws:
ConditionException - if an error occurs during filtering.

toString

public java.lang.String toString()
Produce a debug string.
Overrides:
toString in class java.lang.Object
Returns:
The debug string.


Copyright © 2001-2003 The Werken Company. All Rights Reserved.