|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.semantics.groovy.GroovyInterp
org.drools.semantics.groovy.GroovyCondition
Groovy expression semantics Condition
.
![]() |
![]() |
Constructor Summary | |
GroovyCondition(java.lang.String text,
Rule rule)
Construct. |
Method Summary | |
java.util.Iterator |
declarationIterator()
GroovyInterp needs a declaration iterator. |
boolean |
equals(java.lang.Object object)
|
protected java.lang.Object |
evaluate(groovy.lang.Binding locals)
Evaluate. |
java.lang.Object |
evaluate(Tuple tuple)
Evaluate. |
Declaration[] |
getRequiredTupleMembers()
Retrieve the array of Declaration s required by this condition to perform its duties. |
int |
hashCode()
|
boolean |
isAllowed(Tuple tuple)
Determine if the supplied Tuple is allowed by this
condition. |
Methods inherited from class org.drools.semantics.groovy.GroovyInterp |
getCode, getRule, getText, setUpDictionary |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GroovyCondition(java.lang.String text, Rule rule) throws java.lang.Exception
Method Detail |
public java.lang.Object evaluate(Tuple tuple)
tuple
- Tuple containing variable bindings.
protected java.lang.Object evaluate(groovy.lang.Binding locals)
locals
- The evaluation dictionary.
public Declaration[] getRequiredTupleMembers()
Declaration
s required by this condition to perform its duties.
getRequiredTupleMembers
in interface Condition
Declarations
expected on incoming Tuples
.public boolean isAllowed(Tuple tuple) throws ConditionException
Tuple
is allowed by this
condition.
isAllowed
in interface Condition
ConditionException
- if an error occurs during filtering.tuple
- The Tuple
to test.
true
if the Tuple
passes this
condition, else false
.public int hashCode()
public boolean equals(java.lang.Object object)
public java.util.Iterator declarationIterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |