org.drools.semantics.java
Class ExprCondition

java.lang.Object
  extended byorg.drools.semantics.java.Expr
      extended byorg.drools.semantics.java.ExprCondition
All Implemented Interfaces:
Condition, SemanticComponent, Serializable

public class ExprCondition
extends Expr
implements Condition

Java expression semantics Condition.

Author:
bob@werken.com
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.drools.semantics.java.Expr
Expr.ConditionScript
 
Constructor Summary
ExprCondition(String expr, Rule rule)
          Construct.
 
Method Summary
 boolean isAllowed(Tuple tuple)
          Determine if the supplied Tuple is allowed by this condition.
 String toString()
           
 
Methods inherited from class org.drools.semantics.java.Expr
analyze, evaluateCondition, getExpression, getRequiredTupleMembers, getRule
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.drools.spi.Condition
getRequiredTupleMembers
 

Constructor Detail

ExprCondition

public ExprCondition(String expr,
                     Rule rule)
              throws Exception
Construct.

Parameters:
expr - The expression.
rule - The rule.
Throws:
ConfigurationException - If an error occurs while attempting to perform configuration.
Exception
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 String toString()


Copyright © 2001-2004 The Codehaus. All Rights Reserved.