|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.drools.semantics.python.Interp | +--org.drools.semantics.python.Eval
Base class for Jython expression-based Python semantic components.
ExprCondition
,
ExprExtractor
Constructor Summary | |
protected |
Eval()
Construct. |
Method Summary | |
void |
configure(java.lang.String text,
Declaration[] availDecls)
Configure. |
protected java.lang.Object |
evaluate()
Evaluate. |
protected java.lang.Object |
evaluate(org.python.core.PyDictionary locals)
Evaluate. |
java.lang.Object |
evaluate(Tuple tuple)
Evaluate. |
java.lang.String |
getExpression()
Return the expression. |
Declaration[] |
getRequiredTupleMembers()
Retrieve the array of Declaration s required
by this condition to perform its duties. |
void |
setExpression(java.lang.String expr)
Set the expression to evaluate. |
Methods inherited from class org.drools.semantics.python.Interp |
getCode, getNode, getText, setText, setUpDictionary |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected Eval()
Method Detail |
public java.lang.Object evaluate(Tuple tuple)
tuple
- Tuple containing variable bindings.protected java.lang.Object evaluate(org.python.core.PyDictionary locals)
locals
- The evaluation dictionary.protected java.lang.Object evaluate()
public void setExpression(java.lang.String expr)
expr
- The expression.public java.lang.String getExpression()
public Declaration[] getRequiredTupleMembers()
Declaration
s required
by this condition to perform its duties.Declarations
expected
on incoming Tuples
.public void configure(java.lang.String text, Declaration[] availDecls) throws ConfigurationException
text
- Configuration text.availDecls
- Available declarations.ConfigurationException
- If an error occurs while
attempting to perform configuration.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |