public static enum ScriptEngine.SupportedScriptLang extends java.lang.Enum<ScriptEngine.SupportedScriptLang>
| Enum Constant and Description |
|---|
groovy |
javascript |
jruby |
jython |
streaming_python |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(java.lang.String file,
java.lang.String firstLine)
If other discovery mechanisms come up they can also override accepts()
|
static boolean |
contains(java.lang.String supportedScriptLang) |
java.lang.String |
getEngineClassName() |
static ScriptEngine.SupportedScriptLang |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ScriptEngine.SupportedScriptLang[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScriptEngine.SupportedScriptLang jruby
public static final ScriptEngine.SupportedScriptLang jython
public static final ScriptEngine.SupportedScriptLang javascript
public static final ScriptEngine.SupportedScriptLang groovy
public static final ScriptEngine.SupportedScriptLang streaming_python
public static ScriptEngine.SupportedScriptLang[] values()
for (ScriptEngine.SupportedScriptLang c : ScriptEngine.SupportedScriptLang.values()) System.out.println(c);
public static ScriptEngine.SupportedScriptLang valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static boolean contains(java.lang.String supportedScriptLang)
public boolean accepts(java.lang.String file,
java.lang.String firstLine)
file - the path of the filefirstLine - The first line of the file (possibly containing #!...)public java.lang.String getEngineClassName()
Copyright © 2007-2025 The Apache Software Foundation