public class RhinoTemplate extends Object
| Constructor and Description |
|---|
RhinoTemplate(String source,
org.mozilla.javascript.Script code,
List<JSLocationMapping> locMap) |
| Modifier and Type | Method and Description |
|---|---|
Object |
execute(Appendable a,
IScriptScope scope)
Execute this template, and leave the result in the specified appendable.
|
Object |
execute(Appendable a,
org.mozilla.javascript.Scriptable scope)
Execute this template, and leave the result in the specified appendable.
|
Object |
execute(IJSTemplateContext tc,
org.mozilla.javascript.Scriptable scope)
Execute this compiled script using the specified scope.
|
String |
getSource() |
public RhinoTemplate(String source, org.mozilla.javascript.Script code, List<JSLocationMapping> locMap)
public final String getSource()
public Object execute(IJSTemplateContext tc, org.mozilla.javascript.Scriptable scope)
tc - scope - public Object execute(Appendable a, org.mozilla.javascript.Scriptable scope)
a - assignments - public Object execute(Appendable a, IScriptScope scope)
a - assignments - Copyright © 2017 etc.to. All rights reserved.