org.apache.commons.jexl3.scripting

## Class JexlScriptEngineFactory

- java.lang.Object
- - org.apache.commons.jexl3.scripting.JexlScriptEngineFactory

- All Implemented Interfaces:
    ScriptEngineFactory

      public class JexlScriptEngineFactory
      extends Object
      implements ScriptEngineFactory

  Implements the JEXL ScriptEngineFactory for JSF-223.

  Supports the following:
  Language short names: "JEXL", "Jexl", "jexl", "JEXL2", "Jexl2", "jexl2", "JEXL3", "Jexl3", "jexl3"
  File Extensions: ".jexl", ".jexl2", ".jexl3"
  "jexl3" etc. were added for engineVersion="3.0".

  See Java Scripting API Javadoc.

  Since:
    2.0

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `JexlScriptEngineFactory()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getEngineName()`
    `String` | `getEngineVersion()`
    `List<String>` | `getExtensions()`
    `String` | `getLanguageName()`
    `String` | `getLanguageVersion()`
    `String` | `getMethodCallSyntax(String obj, String m, String... args)`
    `List<String>` | `getMimeTypes()`
    `List<String>` | `getNames()`
    `String` | `getOutputStatement(String toDisplay)`
    `Object` | `getParameter(String key)`
    `String` | `getProgram(String... statements)`
    `ScriptEngine` | `getScriptEngine()`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### JexlScriptEngineFactory

          public JexlScriptEngineFactory()

  - ### Method Detail

    - #### getEngineName

          public String getEngineName()

      Specified by:
        `getEngineName` in interface `ScriptEngineFactory`

    - #### getEngineVersion

          public String getEngineVersion()

      Specified by:
        `getEngineVersion` in interface `ScriptEngineFactory`

    - #### getLanguageName

          public String getLanguageName()

      Specified by:
        `getLanguageName` in interface `ScriptEngineFactory`

    - #### getLanguageVersion

          public String getLanguageVersion()

      Specified by:
        `getLanguageVersion` in interface `ScriptEngineFactory`

    - #### getMethodCallSyntax

          public String getMethodCallSyntax(String obj,
                                            String m,
                                            String... args)

      Specified by:
        `getMethodCallSyntax` in interface `ScriptEngineFactory`

    - #### getExtensions

          public List<String> getExtensions()

      Specified by:
        `getExtensions` in interface `ScriptEngineFactory`

    - #### getMimeTypes

          public List<String> getMimeTypes()

      Specified by:
        `getMimeTypes` in interface `ScriptEngineFactory`

    - #### getNames

          public List<String> getNames()

      Specified by:
        `getNames` in interface `ScriptEngineFactory`

    - #### getOutputStatement

          public String getOutputStatement(String toDisplay)

      Specified by:
        `getOutputStatement` in interface `ScriptEngineFactory`

    - #### getParameter

          public Object getParameter(String key)

      Specified by:
        `getParameter` in interface `ScriptEngineFactory`

    - #### getProgram

          public String getProgram(String... statements)

      Specified by:
        `getProgram` in interface `ScriptEngineFactory`

    - #### getScriptEngine

          public ScriptEngine getScriptEngine()

      Specified by:
        `getScriptEngine` in interface `ScriptEngineFactory`

Copyright © 2001–2021 The Apache Software Foundation. All rights reserved.