public class AbstractScriptSubsetter extends java.lang.Object implements Subsetter
Modifier and Type | Field and Description |
---|---|
protected org.w3c.dom.Element |
config |
protected javax.script.ScriptEngine |
engine |
protected static javax.script.ScriptEngineManager |
factory |
protected java.lang.String |
script |
protected java.lang.String |
scriptType |
Constructor and Description |
---|
AbstractScriptSubsetter(org.w3c.dom.Element config) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
cleanScript(java.lang.String script) |
protected StringTree |
eval() |
protected java.lang.Object |
preeval() |
protected java.lang.Object |
pullResult(java.lang.Object result) |
protected java.lang.String script
protected org.w3c.dom.Element config
protected java.lang.String scriptType
protected javax.script.ScriptEngine engine
protected static javax.script.ScriptEngineManager factory
public AbstractScriptSubsetter(org.w3c.dom.Element config)
protected java.lang.Object preeval() throws java.lang.Exception
java.lang.Exception
protected java.lang.Object pullResult(java.lang.Object result) throws java.lang.Exception
java.lang.Exception
protected StringTree eval() throws java.lang.Exception
java.lang.Exception
public static java.lang.String cleanScript(java.lang.String script)