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, SemanticComponent, Serializable
- public class ExprCondition
- extends Eval
- implements Condition
Python expression semantics Condition
.
- Version:
- $Id: ExprCondition.java,v 1.13 2004/11/29 12:35:52 simon Exp $
- Author:
- bob mcwhirter
- See Also:
- Serialized Form
Method Summary |
boolean |
isAllowed(Tuple tuple)
Determine if the supplied Tuple is allowed by this
condition. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExprCondition
public ExprCondition(String expr,
Rule rule)
throws Exception
- Construct.
- Parameters:
expr
- The expression.
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.
Copyright © 2001-2004 The Codehaus. All Rights Reserved.