public class ELEvaluator extends Object implements Evaluator, Serializable
Constructor and Description |
---|
ELEvaluator()
Constructor.
|
ELEvaluator(javax.servlet.jsp.el.FunctionMapper fnMapper)
Constructor for EL evaluator that supports user-defined functions.
|
Modifier and Type | Method and Description |
---|---|
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. |
public ELEvaluator()
public ELEvaluator(javax.servlet.jsp.el.FunctionMapper fnMapper)
fnMapper
- The function mapper for this Evaluator.FunctionMapper
public Object eval(Context ctx, String expr) throws SCXMLExpressionException
eval
in interface Evaluator
ctx
- variable contextexpr
- expressionSCXMLExpressionException
- For a malformed expressionEvaluator.eval(Context, String)
public Boolean evalCond(Context ctx, String expr) throws SCXMLExpressionException
Evaluator
evalCond
in interface Evaluator
ctx
- variable contextexpr
- expressionSCXMLExpressionException
- A malformed exceptionEvaluator.evalCond(Context, String)
public Node evalLocation(Context ctx, String expr) throws SCXMLExpressionException
Evaluator
evalLocation
in interface Evaluator
ctx
- variable contextexpr
- expressionSCXMLExpressionException
- A malformed exceptionEvaluator.evalLocation(Context, String)
public Context newContext(Context parent)
newContext
in interface Evaluator
parent
- parent contextEvaluator.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()
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.