public static enum ScriptEngine.SupportedScriptLang extends Enum<ScriptEngine.SupportedScriptLang>
Enum Constant and Description |
---|
groovy |
javascript |
jruby |
jython |
streaming_python |
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(String file,
String firstLine)
If other discovery mechanisms come up they can also override accepts()
|
static boolean |
contains(String supportedScriptLang) |
String |
getEngineClassName() |
static ScriptEngine.SupportedScriptLang |
valueOf(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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static boolean contains(String supportedScriptLang)
public boolean accepts(String file, String firstLine)
file
- the path of the filefirstLine
- The first line of the file (possibly containing #!...)public String getEngineClassName()
Copyright © 2007-2012 The Apache Software Foundation