Package org.apache.velocity.script
Class VelocityCompiledScript
- java.lang.Object
-
- javax.script.CompiledScript
-
- org.apache.velocity.script.VelocityCompiledScript
-
public class VelocityCompiledScript extends javax.script.CompiledScript
-
-
Field Summary
Fields Modifier and Type Field Description protected VelocityScriptEngine
engine
protected org.apache.velocity.Template
template
-
Constructor Summary
Constructors Constructor Description VelocityCompiledScript(VelocityScriptEngine e, org.apache.velocity.Template t)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
eval(javax.script.ScriptContext scriptContext)
javax.script.ScriptEngine
getEngine()
-
-
-
Field Detail
-
engine
protected VelocityScriptEngine engine
-
template
protected org.apache.velocity.Template template
-
-
Constructor Detail
-
VelocityCompiledScript
public VelocityCompiledScript(VelocityScriptEngine e, org.apache.velocity.Template t)
-
-
Method Detail
-
eval
public java.lang.Object eval(javax.script.ScriptContext scriptContext) throws javax.script.ScriptException
- Specified by:
eval
in classjavax.script.CompiledScript
- Throws:
javax.script.ScriptException
-
getEngine
public javax.script.ScriptEngine getEngine()
- Specified by:
getEngine
in classjavax.script.CompiledScript
-
-