|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | 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 java.lang.Object |
evaluate(bsh.NameSpace ns)
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 bsh.NameSpace |
setUpNameSpace(Tuple tuple)
Configure a NameSpace 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.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(bsh.NameSpace ns) throws bsh.EvalError
ns
- The evaluation namespace.
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 bsh.NameSpace setUpNameSpace(Tuple tuple) throws bsh.EvalError
NameSpace
using a Tuple
for variable bindings.
tuple
- Tuple containing variable bindings.
bsh.EvalError
- If an error occurs while attempting
to bind variables.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |