org.apache.taglibs.rdc.scxml
Interface Evaluator

All Known Implementing Classes:
ELEvaluator

public interface Evaluator

Interface for a component that may be used by the SCXML engines to evaluate the expressions within the SCXML document.

Author:
Jaroslav Gergic, Rahul Akolkar

Method Summary
 java.lang.Object eval(Context ctx, java.lang.String exp)
          Evaluate an expression
 java.lang.Boolean evalCond(Context ctx, java.lang.String expr)
          Evaluate a condition.
 Context newContext(Context parent)
          Create a new child context.
 

Method Detail

eval

public java.lang.Object eval(Context ctx,
                             java.lang.String exp)
                      throws SCXMLExpressionException
Evaluate an expression

Parameters:
ctx - variable context
Returns:
a result of the evaluation
Throws:
SCXMLExpressionException

newContext

public Context newContext(Context parent)
Create a new child context.

Parameters:
parent - parent context
Returns:
new child context

evalCond

public java.lang.Boolean evalCond(Context ctx,
                                  java.lang.String expr)
                           throws SCXMLExpressionException
Evaluate a condition.

Parameters:
ctx - variable context
expr - expression
Returns:
true/false
Throws:
SCXMLExpressionException


Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.