|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.drools.semantics.java.Interp
Base class for BeanShell interpreter-based Java semantic components.
ExprCondition
,
ExprExtractor
,
BlockConsequence
Constructor Summary | |
protected |
Interp()
Construct. |
Method Summary | |
protected void |
cleanUpInterpreter(Tuple tuple)
Unconfigure the interpreter using a Tuple
for variable bindings. |
protected java.lang.Object |
evaluate()
Evaluate. |
java.lang.Object |
evaluate(Tuple tuple)
Evaluate. |
java.lang.String |
getText()
Retrieve the text to evaluate. |
protected void |
setText(java.lang.String text)
Set the text to evaluate. |
protected void |
setUpInterpreter(Tuple tuple)
Configure the interpreter using a Tuple
for variable bindings. |
protected void |
setVariable(java.lang.String name,
java.lang.Object value)
Set a variable for the interpreter. |
protected void |
unsetVariable(java.lang.String name)
Set a variable for the interpreter. |
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.Object evaluate(Tuple tuple) throws bsh.EvalError
tuple
- Tuple containing variable bindings.bsh.EvalError
- If an error occurs while attempting
to evaluate.protected java.lang.Object evaluate() throws bsh.EvalError
bsh.EvalError
- If an error occurs while attempting
to evaluate.public java.lang.String getText()
protected void setText(java.lang.String text)
text
- The text.protected void setUpInterpreter(Tuple tuple) throws bsh.EvalError
Tuple
for variable bindings.tuple
- Tuple containing variable bindings.bsh.EvalError
- If an error occurs while attempting
to bind variables.protected void setVariable(java.lang.String name, java.lang.Object value) throws bsh.EvalError
name
- The variable name.value
- The variable value.bsh.EvalError
- If an error occurs while attempting
to bind the variable.protected void cleanUpInterpreter(Tuple tuple) throws bsh.EvalError
Tuple
for variable bindings.tuple
- Tuple containing variable bindings.bsh.EvalError
- If an error occurs while attempting
to unbind variables.protected void unsetVariable(java.lang.String name) throws bsh.EvalError
name
- The variable name.bsh.EvalError
- If an error occurs while attempting
to unbind the variable.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |