|
|||||||||
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
.
Field Summary | |
---|---|
protected java.lang.String |
name
|
protected java.lang.String |
semanticType
|
Constructor Summary | |
---|---|
PythonCondition(java.lang.String text,
Rule rule)
Construct. |
Method Summary | |
---|---|
java.util.Iterator |
declarationIterator()
PythonInterp needs a declaration iterator. |
boolean |
equals(java.lang.Object object)
|
java.lang.String |
getName()
Returns the name of the component |
Declaration[] |
getRequiredTupleMembers()
Retrieve the array of Declaration s required by this condition to perform its duties. |
java.lang.String |
getSemanticType()
|
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 |
Field Detail |
---|
protected final java.lang.String semanticType
protected final java.lang.String name
Constructor Detail |
---|
public PythonCondition(java.lang.String text, Rule rule) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public java.lang.String getSemanticType()
getSemanticType
in interface SemanticComponent
public java.lang.String getName()
SemanticComponent
getName
in interface SemanticComponent
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 java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public java.util.Iterator declarationIterator()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |