org.drools.semantics.groovy
Class ExprCondition
java.lang.Object
org.drools.semantics.groovy.Interp
org.drools.semantics.groovy.Eval
org.drools.semantics.groovy.ExprCondition
- All Implemented Interfaces:
- Condition, SemanticComponent, Serializable
- public class ExprCondition
- extends Eval
- implements Condition
Groovy expression semantics Condition
.
- Author:
- bob mcwhirter , James Strachan
- 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.rule
- The rule.
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.