Class ExpressionFactory


  • @Deprecated
    public final class ExpressionFactory
    extends JexlOne
    Deprecated.
    Create a JexlEngine and use the createScript method on that instead.
    Creates Expression objects.

    To create a JEXL Expression object, pass valid JEXL syntax to the static createExpression() method:

     String jexl = "array[1]";
     Expression expression = ExpressionFactory.createExpression( jexl );
     

    When an Expression object is created, the JEXL syntax is parsed and verified. If the supplied expression is neither an expression nor a reference, an exception is thrown from createException().

    This is a convenience class; using an instance of a JexlEngine that serves the same purpose with more control is recommended.

    Since:
    1.0
    Version:
    $Id$