public abstract class Script extends Object
Modifier and Type | Field and Description |
---|---|
long |
lastModified |
CompiledScript |
script |
static ScriptEngineManager |
scripting |
static boolean |
trackChanges |
Constructor and Description |
---|
Script() |
Modifier and Type | Method and Description |
---|---|
CompiledScript |
compile(Reader reader) |
CompiledScript |
getCompiledScript() |
abstract String |
getExtension() |
protected String |
getExtension(String location) |
abstract String |
getLocation() |
abstract Reader |
getReader() |
abstract Reader |
getReaderIfModified() |
static ScriptEngineManager |
getScripting() |
static Script |
newScript(File location) |
static Script |
newScript(String location) |
static Script |
newScript(URL location) |
Object |
run(Bindings args) |
public static boolean trackChanges
public static ScriptEngineManager scripting
public CompiledScript script
public long lastModified
public Script()
public static ScriptEngineManager getScripting()
public static Script newScript(String location) throws IOException
IOException
public static Script newScript(URL location) throws IOException
IOException
public abstract Reader getReader() throws IOException
IOException
public abstract Reader getReaderIfModified() throws IOException
IOException
public abstract String getExtension()
public abstract String getLocation()
protected String getExtension(String location)
public Object run(Bindings args) throws ScriptException
ScriptException
public CompiledScript getCompiledScript() throws ScriptException
ScriptException
public CompiledScript compile(Reader reader) throws ScriptException
ScriptException
Copyright © 2017 Nuxeo. All rights reserved.