public class XPathExecutable
extends java.lang.Object
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.
??? | ?????? |
---|---|
protected |
XPathExecutable(XPathExpression exp,
Processor processor,
IndependentContext env,
java.util.ArrayList<XPathVariable> declaredVariables) |
?????? | ????? |
---|---|
OccurrenceIndicator |
getResultCardinality()
Get the statically-determined cardinality of the result of the expression.
|
ItemType |
getResultItemType()
Get the ItemType of the items in the result of the expression, as determined by static analysis.
|
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.
|
protected XPathExecutable(XPathExpression exp, Processor processor, IndependentContext env, java.util.ArrayList<XPathVariable> declaredVariables)
public XPathSelector load()
public ItemType getResultItemType()
public OccurrenceIndicator getResultCardinality()
public XPathExpression getUnderlyingExpression()
public StaticContext getUnderlyingStaticContext()