| Package | Description | 
|---|---|
| org.apache.commons.scxml2 | 
 The Commons SCXML executor and core concepts. 
 | 
| org.apache.commons.scxml2.env | 
 A collection of classes that may be commonly used to bridge the
     SCXML executor to the runtime environment. 
 | 
| org.apache.commons.scxml2.env.groovy | 
 A collection of classes that allow Groovy to be used in expressions
     within SCXML documents. 
 | 
| org.apache.commons.scxml2.env.javascript | 
 A collection of classes that allow JavaScript to be used in expressions
     within SCXML documents via the  
javax.script API. | 
| org.apache.commons.scxml2.env.jexl | 
 A collection of classes that allow JEXL to be used in expressions
     within SCXML documents. 
 | 
| org.apache.commons.scxml2.env.minimal | |
| org.apache.commons.scxml2.env.xpath | 
 A collection of classes that allow XPath to be used in expressions
     within SCXML documents via Commons JXPath 
 | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
SCXMLSystemContext
The SCXMLSystemContext is used as a read only Context wrapper
 and provides the SCXML (read only) system variables which are injected via the unwrapped  
SCXMLSystemContext.getContext(). | 
| Modifier and Type | Method and Description | 
|---|---|
Context | 
SCInstance.getContext(EnterableState state)
Get the context for an EnterableState or create one if not created before. 
 | 
Context | 
ActionExecutionContext.getContext(EnterableState state)  | 
Context | 
SCXMLExecutor.getGlobalContext()
Get the global context for the state machine execution. 
 | 
Context | 
SCInstance.getGlobalContext()  | 
Context | 
ActionExecutionContext.getGlobalContext()  | 
Context | 
SCXMLSystemContext.getParent()  | 
Context | 
Context.getParent()
Get the parent Context, may be null. 
 | 
Context | 
SCXMLExecutor.getRootContext()
Get the root context for the state machine execution. 
 | 
Context | 
SCInstance.getRootContext()
Get the root context. 
 | 
Context | 
SCInstance.getSystemContext()
Get the unwrapped (modifiable) system context. 
 | 
Context | 
Evaluator.newContext(Context parent)
Create a new child context. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
XPathBuiltin.assign(Context ctx,
            Object location,
            Object data,
            Evaluator.AssignType type,
            String attr)
Assigns data to a location 
 | 
protected void | 
SCInstance.cloneDatamodel(Datamodel datamodel,
                            Context ctx,
                            Evaluator evaluator,
                            ErrorReporter errorReporter)
Clone data model. 
 | 
static Object | 
XPathBuiltin.eval(Context ctx,
        String expression)
Evaluate an xpath expression returning a data value 
 | 
Object | 
Evaluator.eval(Context ctx,
        String expr)
Evaluate an expression returning a data value 
 | 
void | 
Evaluator.evalAssign(Context ctx,
                    String location,
                    Object data,
                    Evaluator.AssignType type,
                    String attr)
Assigns data to a location 
 | 
Boolean | 
Evaluator.evalCond(Context ctx,
                String expr)
Evaluate a condition. 
 | 
static Object | 
XPathBuiltin.evalLocation(Context ctx,
                        String expression)
Evaluate an xpath location that returns a data assignable reference or list of references. 
 | 
Object | 
Evaluator.evalLocation(Context ctx,
                        String expr)
Evaluate a location that returns a data assignable reference or list of references. 
 | 
Object | 
Evaluator.evalScript(Context ctx,
                    String script)
Evaluate a script. 
 | 
static boolean | 
Builtin.isMember(Context ctx,
                String state)
Implements the In() predicate for SCXML documents. 
 | 
static boolean | 
XPathBuiltin.isXPathLocation(Context ctx,
                              Object data)
Determine if an  
Evaluator.evalLocation(Context, String) returned result represents an XPath location | 
Context | 
Evaluator.newContext(Context parent)
Create a new child context. 
 | 
void | 
SCXMLExecutor.setRootContext(Context rootContext)
Set the root context for the state machine execution. 
 | 
protected void | 
SCInstance.setRootContext(Context context)
Set or replace the root context. 
 | 
| Constructor and Description | 
|---|
SCXMLSystemContext(Context systemContext)  | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
SimpleContext
Simple Context wrapping a map of variables. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Context | 
SimpleContext.getParent()
Get the parent Context, may be null. 
 | 
| Constructor and Description | 
|---|
AbstractStateMachine(SCXML stateMachine,
                                        Context rootCtx,
                                        Evaluator evaluator)
Primary constructor. 
 | 
AbstractStateMachine(URL scxmlDocument,
                                        Context rootCtx,
                                        Evaluator evaluator)
Primary constructor, object instantiation incurs parsing cost. 
 | 
EffectiveContextMap(Context ctx)
Constructor. 
 | 
SimpleContext(Context parent)
Constructor. 
 | 
SimpleContext(Context parent,
                          Map<String,Object> initialVars)
Constructor. 
 | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
GroovyContext
Groovy Context implementation for Commons SCXML. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Context | 
GroovyEvaluator.newContext(Context parent)
Create a new child context. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Object | 
GroovyEvaluator.eval(Context ctx,
        String expr)
Evaluate an expression. 
 | 
void | 
GroovyEvaluator.evalAssign(Context ctx,
                    String location,
                    Object data,
                    Evaluator.AssignType type,
                    String attr)  | 
Boolean | 
GroovyEvaluator.evalCond(Context ctx,
                String expr)  | 
Object | 
GroovyEvaluator.evalLocation(Context ctx,
                        String expr)  | 
Object | 
GroovyEvaluator.evalScript(Context ctx,
                    String scriptSource)  | 
Context | 
GroovyEvaluator.newContext(Context parent)
Create a new child context. 
 | 
| Constructor and Description | 
|---|
GroovyContext(Context parent,
                          GroovyEvaluator evaluator)
Constructor with parent context. 
 | 
GroovyContext(Context parent,
                          Map<String,Object> initialVars,
                          GroovyEvaluator evaluator)
Constructor with initial vars. 
 | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
JSContext
SCXML Context for use by the JSEvaluator. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Context | 
JSEvaluator.newContext(Context parent)
Creates a child context. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Object | 
JSEvaluator.eval(Context context,
        String expression)
Evaluates the expression using a new Javascript engine obtained from
 factory instantiated in the constructor. 
 | 
void | 
JSEvaluator.evalAssign(Context ctx,
                    String location,
                    Object data,
                    Evaluator.AssignType type,
                    String attr)  | 
Boolean | 
JSEvaluator.evalCond(Context context,
                String expression)
Evaluates a conditional expression using the  
eval() method and
 casting the result to a Boolean. | 
Object | 
JSEvaluator.evalLocation(Context context,
                        String expression)
Evaluates a location expression using a new Javascript engine obtained from
 factory instantiated in the constructor. 
 | 
Object | 
JSEvaluator.evalScript(Context ctx,
                    String script)
Executes the script using a new Javascript engine obtained from
 factory instantiated in the constructor. 
 | 
Context | 
JSEvaluator.newContext(Context parent)
Creates a child context. 
 | 
| Constructor and Description | 
|---|
JSBindings(Context context,
                    Bindings bindings)
Initialises the internal Bindings delegate and SCXML context. 
 | 
JSContext(Context parent)
Child constructor. 
 | 
JSContext(Context parent,
                  Map<String,Object> initialVars)
Constructor with initial vars. 
 | 
JSFunctions(Context ctx)
Creates a new instance, wraps the context. 
 | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
JexlContext
JEXL Context implementation for Commons SCXML. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Context | 
JexlEvaluator.newContext(Context parent)
Create a new child context. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Object | 
JexlEvaluator.eval(Context ctx,
        String expr)
Evaluate an expression. 
 | 
void | 
JexlEvaluator.evalAssign(Context ctx,
                    String location,
                    Object data,
                    Evaluator.AssignType type,
                    String attr)  | 
Boolean | 
JexlEvaluator.evalCond(Context ctx,
                String expr)  | 
Object | 
JexlEvaluator.evalLocation(Context ctx,
                        String expr)  | 
Object | 
JexlEvaluator.evalScript(Context ctx,
                    String script)  | 
Context | 
JexlEvaluator.newContext(Context parent)
Create a new child context. 
 | 
| Constructor and Description | 
|---|
JexlContext(Context parent)
Constructor with parent context. 
 | 
JexlContext(Context parent,
                      Map<String,Object> initialVars)
Constructor with initial vars. 
 | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
MinimalContext
MinimalContext implementation for the SCXML Null Data Model. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Context | 
MinimalEvaluator.newContext(Context parent)  | 
| Modifier and Type | Method and Description | 
|---|---|
Object | 
MinimalEvaluator.eval(Context ctx,
        String expr)  | 
void | 
MinimalEvaluator.evalAssign(Context ctx,
                    String location,
                    Object data,
                    Evaluator.AssignType type,
                    String attr)  | 
Boolean | 
MinimalEvaluator.evalCond(Context ctx,
                String expr)  | 
Object | 
MinimalEvaluator.evalLocation(Context ctx,
                        String expr)  | 
Object | 
MinimalEvaluator.evalScript(Context ctx,
                    String script)  | 
Context | 
MinimalEvaluator.newContext(Context parent)  | 
| Constructor and Description | 
|---|
MinimalContext(Context parent)  | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
XPathContext
A  
Context implementation for JXPath environments. | 
| Modifier and Type | Method and Description | 
|---|---|
Context | 
XPathEvaluator.newContext(Context parent)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
XPathEvaluator.assign(Context ctx,
            Node node,
            String nodePath,
            Object data,
            Evaluator.AssignType type,
            String attr)  | 
void | 
XPathEvaluator.assign(Context ctx,
            Object location,
            Object data,
            Evaluator.AssignType type,
            String attr)
Assigns data to a location 
 | 
Object | 
XPathEvaluator.eval(Context ctx,
        String expr)  | 
void | 
XPathEvaluator.evalAssign(Context ctx,
                    String location,
                    Object data,
                    Evaluator.AssignType type,
                    String attr)  | 
Boolean | 
XPathEvaluator.evalCond(Context ctx,
                String expr)  | 
Object | 
XPathEvaluator.evalLocation(Context ctx,
                        String expr)  | 
Object | 
XPathEvaluator.evalScript(Context ctx,
                    String script)  | 
protected org.apache.commons.jxpath.JXPathContext | 
XPathEvaluator.getContext(Context ctx)  | 
boolean | 
XPathEvaluator.isXPathLocation(Context ctx,
                              Object data)
Determine if an  
Evaluator.evalLocation(Context, String) returned result represents an XPath location | 
Context | 
XPathEvaluator.newContext(Context parent)  | 
| Constructor and Description | 
|---|
ContextVariables(Context ctx)  | 
XPathContext(Context parent)
Constructor for cascading contexts. 
 | 
Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.