Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.taglibs.rdc.scxml.env
Class ELEvaluator  view ELEvaluator download ELEvaluator.java

java.lang.Object
  extended byorg.apache.taglibs.rdc.scxml.env.ELEvaluator
All Implemented Interfaces:
org.apache.taglibs.rdc.scxml.Evaluator

public class ELEvaluator
extends java.lang.Object
implements org.apache.taglibs.rdc.scxml.Evaluator

EL engine interface for SCXML Interpreter.


Nested Class Summary
(package private)  class ELEvaluator.CtxWrapper
          A Context wrapper that implements VariableResolver
(package private)  class ELEvaluator.FunctWrapper
          A simple function mapper for SCXML defined functions
 
Field Summary
(package private)  javax.servlet.jsp.el.ExpressionEvaluator ee
           
private  javax.servlet.jsp.el.FunctionMapper fm
           
private static java.util.regex.Pattern inFct
           
private static org.apache.commons.logging.Log log
           
 
Constructor Summary
ELEvaluator()
          Constructor
 
Method Summary
 java.lang.Object eval(org.apache.taglibs.rdc.scxml.Context ctx, java.lang.String expr)
          Evaluate an expression
 java.lang.Boolean evalCond(org.apache.taglibs.rdc.scxml.Context ctx, java.lang.String expr)
          Evaluate a condition.
static boolean isMember(java.util.Set allStates, java.lang.String state)
          Does this state belong to the Set of these States.
 org.apache.taglibs.rdc.scxml.Context newContext(org.apache.taglibs.rdc.scxml.Context parent)
          Create a new child context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.commons.logging.Log log

fm

private javax.servlet.jsp.el.FunctionMapper fm

inFct

private static java.util.regex.Pattern inFct

ee

javax.servlet.jsp.el.ExpressionEvaluator ee
Constructor Detail

ELEvaluator

public ELEvaluator()
Constructor

Method Detail

eval

public java.lang.Object eval(org.apache.taglibs.rdc.scxml.Context ctx,
                             java.lang.String expr)
                      throws org.apache.taglibs.rdc.scxml.SCXMLExpressionException
Evaluate an expression

Specified by:
eval in interface org.apache.taglibs.rdc.scxml.Evaluator

newContext

public org.apache.taglibs.rdc.scxml.Context newContext(org.apache.taglibs.rdc.scxml.Context parent)
Create a new child context.

Specified by:
newContext in interface org.apache.taglibs.rdc.scxml.Evaluator

evalCond

public java.lang.Boolean evalCond(org.apache.taglibs.rdc.scxml.Context ctx,
                                  java.lang.String expr)
                           throws org.apache.taglibs.rdc.scxml.SCXMLExpressionException
Description copied from interface: org.apache.taglibs.rdc.scxml.Evaluator
Evaluate a condition.

Specified by:
evalCond in interface org.apache.taglibs.rdc.scxml.Evaluator

isMember

public static final boolean isMember(java.util.Set allStates,
                                     java.lang.String state)
Does this state belong to the Set of these States. Simple ID based comparator