|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.semantics.python.PythonInterp
org.drools.semantics.python.PythonCondition
public class PythonCondition
Python expression semantics Condition
.
Constructor Summary | |
---|---|
PythonCondition(String text,
Rule rule)
Construct. |
Method Summary | |
---|---|
Iterator |
declarationIterator()
PythonInterp needs a declaration iterator. |
boolean |
equals(Object object)
|
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.python.PythonInterp |
---|
getCode, getGlobals, getGlobals, getNode, getRule, getText, setUpDictionary, stripOuterIndention |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PythonCondition(String text, Rule rule) throws Exception
Exception
Method Detail |
---|
public boolean isAllowed(Tuple tuple) throws ConditionException
Tuple
is allowed by this
condition.
isAllowed
in interface Condition
tuple
- The Tuple
to test.
true
if the Tuple
passes this
condition, else false
.
ConditionException
- if an error occurs during filtering.public Declaration[] getRequiredTupleMembers()
Declaration
s required by this condition to perform its duties.
getRequiredTupleMembers
in interface Condition
Declarations
expected on incoming Tuples
.public int hashCode()
hashCode
in class Object
public boolean equals(Object object)
equals
in class Object
public Iterator declarationIterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |