|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.s9api.XPathExecutable
public class XPathExecutable
An XPathExecutable represents the compiled form of an XPath expression.
To evaluate the expression, it must first be loaded to form an XPathSelector
.
An XPathExecutable is immutable, and therefore thread-safe. It is simplest to load a new XPathSelector each time the expression is to be evaluated. However, the XPathSelector is serially reusable within a single thread.
An XPathExecutable is created by using the XPathCompiler.compile(java.lang.String)
method
on the XPathCompiler
class.
Constructor Summary | |
---|---|
protected |
XPathExecutable(XPathExpression exp,
Configuration config,
IndependentContext env,
java.util.ArrayList<XPathVariable> declaredVariables)
|
Method Summary | |
---|---|
XPathExpression |
getUnderlyingExpression()
Get the underlying implementation object representing the compiled XPath expression. |
StaticContext |
getUnderlyingStaticContext()
Get the underlying implementation object representing the static context of the compiled XPath expression. |
XPathSelector |
load()
Load the compiled XPath expression to prepare it for execution. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected XPathExecutable(XPathExpression exp, Configuration config, IndependentContext env, java.util.ArrayList<XPathVariable> declaredVariables)
Method Detail |
---|
public XPathSelector load()
public XPathExpression getUnderlyingExpression()
public StaticContext getUnderlyingStaticContext()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |