Supports the following:
File Extensions: ".jexl", ".jexl2"
"jexl2" etc. were added for engineVersion="2.0".
See Java Scripting API Javadoc.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getEngineName()
Implements javax. ScriptEngine.
|
| public String | getEngineVersion()
Implements javax. ScriptEngine.
|
| public List | getExtensions()
Implements javax. ScriptEngine.
|
| public String | getLanguageName()
Implements javax. ScriptEngine.
|
| public String | getLanguageVersion()
Implements javax. ScriptEngine.
|
| public String | getMethodCallSyntax(String
The name representing the object whose method is to be invoked. The
name is the one used to create bindings using the obj, String put method of
ScriptEngine, the put method of an ENGINE_SCOPE
Bindings,or the setAttribute method
of ScriptContext. The identifier used in scripts may be a decorated form of the
specified one.The name of the method to invoke. m, String[] names of the arguments in the method call. args)Implements javax. |
| public List | getMimeTypes()
Implements javax. |
| public List | getNames()
Implements javax. ScriptEngine, which may be used to
identify the ScriptEngine by the ScriptEngineManager.
|
| public String | getOutputStatement(String
The String to be displayed by the returned statement. toDisplay)Implements javax. |
| public Object | getParameter(String
The name of the parameter key)Implements javax. |
| public String | getProgram(String[]
The statements to be executed. May be return values of
calls to the statements)getMethodCallSyntax and getOutputStatement methods.Implements javax. |
| public ScriptEngine | getScriptEngine()
Implements javax. ScriptEngine associated with this
ScriptEngineFactory.
|
| JexlScriptEngineFactory | back to summary |
|---|---|
| public JexlScriptEngineFactory() | |
| getEngineName | back to summary |
|---|---|
| public String getEngineName() Implements javax. Doc from javax. Returns the full name of the
| |
| getEngineVersion | back to summary |
|---|---|
| public String getEngineVersion() Implements javax. Doc from javax. Returns the version of the
| |
| getExtensions | back to summary |
|---|---|
| public List Implements javax. Doc from javax. Returns an immutable list of filename extensions, which generally identify scripts
written in the language supported by this | |
| getLanguageName | back to summary |
|---|---|
| public String getLanguageName() Implements javax. Doc from javax. Returns the name of the scripting language supported by this
| |
| getLanguageVersion | back to summary |
|---|---|
| public String getLanguageVersion() Implements javax. Doc from javax. Returns the version of the scripting language supported by this
| |
| getMethodCallSyntax | back to summary |
|---|---|
| public String getMethodCallSyntax(String obj, String m, String[] args) Implements javax. Doc from javax. Returns a String which can be used to invoke a method of a Java object using the syntax of the supported scripting language. For instance, an implementation for a Javascript engine might be;
| |
| getMimeTypes | back to summary |
|---|---|
| public List Implements javax. Doc from javax. Returns an immutable list of mimetypes, associated with scripts that
can be executed by the engine. The list is used by the
| |
| getNames | back to summary |
|---|---|
| public List Implements javax. Doc from javax. Returns an immutable list of short names for the | |
| getOutputStatement | back to summary |
|---|---|
| public String getOutputStatement(String toDisplay) Implements javax. Doc from javax. Returns a String that can be used as a statement to display the specified String using the syntax of the supported scripting language. For instance, the implementation for a Perl engine might be;
| |
| getParameter | back to summary |
|---|---|
| public Object getParameter(String key) Implements javax. Doc from javax. Returns the value of an attribute whose meaning may be implementation-specific. Keys for which the value is defined in all implementations are:
The values for these keys are the Strings returned by
Implementations may define implementation-specific keys. | |
| getProgram | back to summary |
|---|---|
| public String getProgram(String[] statements) Implements javax. Doc from javax. Returns a valid scripting language executable program with given statements. For instance an implementation for a PHP engine might be:
| |
| getScriptEngine | back to summary |
|---|---|
| public ScriptEngine getScriptEngine() Implements javax. Doc from javax. Returns an instance of the
| |