public interface ScriptHandler
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
call(java.lang.String name,
java.lang.Object[] args)
Calls the method with the given name, and set of arguments
|
java.lang.Object |
call(java.lang.String name,
java.lang.Object[] args,
java.lang.String namespace)
Calls the method with the given name, and set of arguments
|
boolean |
createNamespace(java.lang.String name)
Creates a new namespace with the given name
|
java.lang.Object |
eval(XSLScript xslScript,
org.w3c.dom.Node context)
Evaluates the given XSLScript element using the default namespace
|
java.lang.Object |
eval(XSLScript xslScript,
org.w3c.dom.Node context,
java.lang.String namespace)
Evaluates the given XSLScript element using the given namespace
|
java.lang.Object |
evalAsFunction(XSLScript xslScript,
org.w3c.dom.Node context)
Evaluates the given XSLScript element as a function using the
default namespace.
|
java.lang.Object |
evalAsFunction(XSLScript xslScript,
org.w3c.dom.Node context,
java.lang.String namespace)
Evaluates the given XSLScript element as a function using the
given namespace.
|
java.lang.String |
getLanguage()
Returns the name of the language that this ScriptHandler handles
|
boolean |
hasDefinedFunction(java.lang.String name,
java.lang.String namespace) |
void |
initialize(ProcessorCallback pc)
Initializes the scripting environment
|
java.lang.Object call(java.lang.String name, java.lang.Object[] args)
name
- the name of the method to callargs
- the methods argumentsjava.lang.Object call(java.lang.String name, java.lang.Object[] args, java.lang.String namespace)
name
- the name of the method to callargs
- the methods argumentsnamespace
- the Namespace to use for evaluationboolean createNamespace(java.lang.String name)
java.lang.Object eval(XSLScript xslScript, org.w3c.dom.Node context)
xslScript
- the XSLScript to evaluatecontext
- the current DOM Node that is the context
of this evaluation.java.lang.Object eval(XSLScript xslScript, org.w3c.dom.Node context, java.lang.String namespace)
xslScript
- the XSLScript to evaluatecontext
- the current DOM Node that is the context
of this evaluation.namespace
- the Namespace to use for evaluationjava.lang.Object evalAsFunction(XSLScript xslScript, org.w3c.dom.Node context)
xslScript
- the XSLScript to evaluatecontext
- the current DOM Node that is the context
of this evaluation.java.lang.Object evalAsFunction(XSLScript xslScript, org.w3c.dom.Node context, java.lang.String namespace)
xslScript
- the XSLScript to evaluatecontext
- the current DOM Node that is the context
of this evaluation.namespace
- the Namespace to use for evaluationjava.lang.String getLanguage()
boolean hasDefinedFunction(java.lang.String name, java.lang.String namespace)
void initialize(ProcessorCallback pc)
pc
- the ProcessorCallback for supporting
access to the RuleProcessor.