|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.drools.semantics.python.Interp
Base class for Jython interpreter-based Python semantic components.
Eval
,
Exec
Constructor Summary | |
protected |
Interp()
Construct. |
Method Summary | |
protected org.python.core.PyCode |
getCode()
Retrieve the compiled code. |
org.python.parser.ast.modType |
getNode()
Retrieve the AST node. |
java.lang.String |
getText()
Retrieve the text to evaluate. |
protected void |
setText(java.lang.String text,
java.lang.String type)
Set the text to evaluate. |
protected org.python.core.PyDictionary |
setUpDictionary(Tuple tuple)
Configure a PyDictionary using a Tuple
for variable bindings. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected Interp()
Method Detail |
public java.lang.String getText()
protected void setText(java.lang.String text, java.lang.String type)
text
- The text.type
- The type ("exec" or "eval").public org.python.parser.ast.modType getNode()
protected org.python.core.PyCode getCode()
protected org.python.core.PyDictionary setUpDictionary(Tuple tuple)
PyDictionary
using a Tuple
for variable bindings.
tuple
- Tuple containing variable bindings.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |