public interface Evaluator
| Modifier and Type | Interface and Description |
|---|---|
static class |
Evaluator.AssignType
The allowable types of
|
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_DATA_MODEL
Default Data Model name
|
static String |
ECMASCRIPT_DATA_MODEL
SCXML 1.0 ECMAScript Data Model name
|
static String |
NULL_DATA_MODEL
SCXML 1.0 Null Data Model name
|
static String |
XPATH_DATA_MODEL
SCXML 1.0 XPath Data Model name
|
| Modifier and Type | Method and Description |
|---|---|
Object |
eval(Context ctx,
String expr)
Evaluate an expression returning a data value
|
void |
evalAssign(Context ctx,
String location,
Object data,
Evaluator.AssignType type,
String attr)
Assigns data to a location
|
Boolean |
evalCond(Context ctx,
String expr)
Evaluate a condition.
|
Object |
evalLocation(Context ctx,
String expr)
Evaluate a location that returns a data assignable reference or list of references.
|
Object |
evalScript(Context ctx,
String script)
Evaluate a script.
|
String |
getSupportedDatamodel()
Get the datamodel type supported by this Evaluator
|
Context |
newContext(Context parent)
Create a new child context.
|
static final String NULL_DATA_MODEL
static final String ECMASCRIPT_DATA_MODEL
static final String XPATH_DATA_MODEL
static final String DEFAULT_DATA_MODEL
String getSupportedDatamodel()
Object eval(Context ctx, String expr) throws SCXMLExpressionException
ctx - variable contextexpr - expressionSCXMLExpressionException - A malformed expression exceptionBoolean evalCond(Context ctx, String expr) throws SCXMLExpressionException
ctx - variable contextexpr - expressionSCXMLExpressionException - A malformed expression exceptionObject evalLocation(Context ctx, String expr) throws SCXMLExpressionException
ctx - variable contextexpr - expressionSCXMLExpressionException - A malformed expression exceptionvoid evalAssign(Context ctx, String location, Object data, Evaluator.AssignType type, String attr) throws SCXMLExpressionException
ctx - variable contextlocation - location expressiondata - the data to assign.type - the type of assignment to perform, null assumes Evaluator.AssignType.REPLACE_CHILDRENattr - the name of the attribute to add when using type Evaluator.AssignType.ADD_ATTRIBUTESCXMLExpressionException - A malformed expression exceptionObject evalScript(Context ctx, String script) throws SCXMLExpressionException
ctx - variable contextscript - The scriptSCXMLExpressionException - A malformed scriptContext newContext(Context parent)
parent - parent contextCopyright © 2005–2015 The Apache Software Foundation. All rights reserved.