|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.scxml.env.jsp.ELEvaluator
Evaluator implementation enabling use of EL expressions in SCXML documents.
| Constructor Summary | |
ELEvaluator()
Constructor. |
|
ELEvaluator(javax.servlet.jsp.el.FunctionMapper fnMapper)
Constructor for EL evaluator that supports user-defined functions. |
|
| Method Summary | |
Object |
eval(Context ctx,
String expr)
Evaluate an expression. |
Boolean |
evalCond(Context ctx,
String expr)
Evaluate a condition. |
Node |
evalLocation(Context ctx,
String expr)
Evaluate a location that returns a Node within an XML data tree. |
protected javax.servlet.jsp.el.FunctionMapper |
getBuiltinFnMapper()
Get the FunctionMapper for builtin SCXML/Commons SCXML functions. |
protected org.apache.commons.logging.Log |
getLog()
Get the log used by this Evaluator instance. |
Context |
newContext(Context parent)
Create a new child context. |
protected void |
setLog(org.apache.commons.logging.Log log)
Set the log used by this Evaluator instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ELEvaluator()
public ELEvaluator(javax.servlet.jsp.el.FunctionMapper fnMapper)
fnMapper - The function mapper for this Evaluator.FunctionMapper| Method Detail |
public Object eval(Context ctx,
String expr)
throws SCXMLExpressionException
eval in interface Evaluatorctx - variable contextexpr - expression
SCXMLExpressionException - For a malformed expressionEvaluator.eval(Context, String)
public Boolean evalCond(Context ctx,
String expr)
throws SCXMLExpressionException
Evaluator
evalCond in interface Evaluatorctx - variable contextexpr - expression
SCXMLExpressionException - A malformed exceptionEvaluator.evalCond(Context, String)
public Node evalLocation(Context ctx,
String expr)
throws SCXMLExpressionException
Evaluator
evalLocation in interface Evaluatorctx - variable contextexpr - expression
SCXMLExpressionException - A malformed exceptionEvaluator.evalLocation(Context, String)public Context newContext(Context parent)
newContext in interface Evaluatorparent - parent context
Evaluator.newContext(Context)protected void setLog(org.apache.commons.logging.Log log)
Evaluator instance.
log - The new log.protected org.apache.commons.logging.Log getLog()
Evaluator instance.
protected javax.servlet.jsp.el.FunctionMapper getBuiltinFnMapper()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||