public interface ScriptCompiler
Script object.| Modifier and Type | Method and Description |
|---|---|
<T extends Script> |
compile(Class<T> scriptType)
Compiles the script into a
Script object of the given type. |
ScriptCompiler |
setClassloader(ClassLoader classloader)
Sets the parent classloader for the script.
|
ScriptCompiler |
setTransformer(Transformer transformer)
Sets the transformer to use to compile the script.
|
ScriptCompiler setClassloader(ClassLoader classloader)
ScriptCompiler setTransformer(Transformer transformer)
<T extends Script> ScriptRunner<T> compile(Class<T> scriptType) throws ScriptCompilationException
Script object of the given type.ScriptCompilationException - On compilation failure.Copyright © 2013. All rights reserved