Class ScriptFactory


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

    Creates Scripts. To create a JEXL Script, pass valid JEXL syntax to the static createScript() method:

     String jexl = "y = x * 12 + 44; y = y * 4;";
     Script script = ScriptFactory.createScript( jexl );
     

    When an Script is created, the JEXL syntax is parsed and verified.

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

    Since:
    1.1
    Version:
    $Id$