This class extends DTMManager but does not directly implement it.
| Modifier and Type | Class and Description |
|---|---|
| public class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv XPathContext. | |
| private Stack | m_axesIteratorStack
Stack of AxesIterators. |
| private Stack | m_contextNodeLists
The current context node list. |
| private IntStack | m_currentExpressionNodes
A stack of the current sub-expression nodes. |
| private IntStack | m_currentNodes
The stack of current node objects. |
| private ErrorListener | m_defaultErrorListener
A default ErrorListener in case our m_errorListener was not specified and our owner either does not have an ErrorListener or has a null one. |
| protected DTMManager | m_dtmManager
Though XPathContext context extends the DTMManager, it really is a proxy for this object, which is the real DTMManager. |
| private Map | m_DTMXRTreeFrags
HashMap of cached the DTMXRTreeFrag objects, which are identified by DTM IDs. |
| private ErrorListener | m_errorListener
The ErrorListener where errors and warnings are to be reported. |
| private SAX2RTFDTM | m_global_rtfdtm
Most recent "reusable" DTM for Global Result Tree Fragments. |
| private boolean | m_isSecureProcessing
state of the secure processing feature. |
| private NodeVector | m_iteratorRoots
A stack of the current sub-expression nodes. |
| pack-priv IntStack | |
| private boolean | |
| private Object | m_owner
The owner context of this XPathContext. |
| private Method | m_ownerGetErrorListener
The owner context of this XPathContext. |
| private IntStack | |
| private NodeVector | m_predicateRoots
A stack of the current sub-expression nodes. |
| private ObjectStack | |
| public XMLReader | m_primaryReader
The reader of the primary source tree. |
| private List | m_rtfdtm_stack
Stack of cached "reusable" DTMs for Result Tree Fragments. |
| pack-priv ObjectStack | m_saxLocations
The current stylesheet locator. |
| private URIResolver | m_uriResolver
The TrAX URI Resolver for resolving URIs from the document(...) function to source tree nodes. |
| private VariableStack | m_variableStacks
The stack of Variable stacks. |
| private int | m_which_rtfdtm
Index of currently active RTF DTM in m_rtfdtm_stack |
| public static final int | RECURSIONLIMIT
The amount to use for stacks that record information during the recursive execution. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | XPathContext(Object
Value that can be retrieved via the getOwnerObject() method. owner)This constructor doesn't seem to be used anywhere -- huizhe wang** Create an XPathContext instance. |
| Modifier and Type | Method and Description |
|---|---|
| public DTM | Returns: A newDocumentFragment handle.Implements abstract com. Creates an empty |
| public DTMIterator | Returns: The newly createdDTMIterator.??? Somehow we need to pass in a subpart of the
expression. I hate to do this with strings, since the larger expression
has already been parsed. xpathCompiler, int The position in the expression. pos)Implements abstract com. Create a new |
| public DTMIterator | Returns: The newly createdDTMIterator.Must be a valid string expressing a
LocationPath or
a UnionExpr. xpathString, PrefixResolver An object that can resolve prefixes to namespace URLs. presolver)Implements abstract com. Create a new |
| public DTMIterator | Returns: The newly createdNodeIterator.This flag specifies which node types may appear in
the logical view of the tree presented by the iterator. See the
description of whatToShow, DTMFilter NodeFilter for the set of possible
SHOW_ values.These flags can be combined using
OR.The filter, boolean NodeFilter to be used with this
TreeWalker, or null to indicate no filter.The value of this flag determines
whether entity reference nodes are expanded. entityReferenceExpansion)Implements abstract com. Create a new |
| public DTMIterator | Returns: The newly createdDTMIterator.The node handle that the DTMIterator will iterate to. node)Implements abstract com. Create a new |
| public Stack | |
| public final int | |
| public final DTMIterator | Returns: the current node list, also referred to here as a context node list.Get the current context node list. |
| public Stack | |
| public final DTMIterator | Returns: An iterator for the current context list, as defined in XSLT.Get the current context node list. |
| public final int | Returns: The current sub-expression node.Get the current node that is the expression's context (i.e. for current() support). |
| public IntStack | |
| public final int | |
| public SubContextList | Returns: the current node list.Get the current node list as defined by the XSLT spec. |
| public IntStack | |
| public DTM | Returns: a non-null DTM reference.the specification of the source object, which may be null,
in which case it is assumed that node construction will take
by some other means. source, boolean true if the returned DTM must be unique, probably because it
is going to be mutated. unique, DTMWSFilter Enables filtering of whitespace nodes, and may be null. wsfilter, boolean true if the construction should try and be incremental. incremental, boolean true if the caller considers it worth it to use
indexing schemes. doIndexing)Implements abstract com. Get an instance of a DTM, loaded with the content from the specified source. |
| public DTM | Returns: a non-null DTM reference.the nodeHandle. nodeHandle)Implements abstract com. Get an instance of a DTM that "owns" a node handle. |
| public int | Returns: a valid DTM handle.Non-null reference to a DOM node. node)Implements abstract com. Given a W3C DOM node, try and return a DTM handle. |
| public int | getDTMIdentity(DTM dtm)
Implements abstract com. %TBD% Doc |
| public DTMManager | |
| public DTMXRTreeFrag | Returns: DTMXRTreeFragGets DTMXRTreeFrag object if one has already been created. |
| public final ErrorListener | Returns: A non-null ErrorListener reference.Get the ErrorListener where errors and warnings are to be reported. |
| public ExpressionContext | Returns: An object that implements the ExpressionContext.The the expression context for extensions for this context. |
| public DTM | Returns: a non-null DTM reference.Get a DTM to be used as a container for a global Result Tree Fragment. |
| public final int | |
| public final PrefixResolver | Returns: the current prefix resolver for resolving prefixes to namespace URLs.Get the current namespace context for the xpath. |
| public Object | Returns: The owner object passed into the constructor, or null.Get the "owner" context of this context, which should be, in the case of XSLT, the Transformer object. |
| public final int | |
| public final int | |
| public final XMLReader | Returns: The reader of the primary source tree.Get primary XMLReader associated with this execution context. |
| public DTM | Returns: a non-null DTM reference.Get a DTM to be used as a container for a dynamic Result Tree Fragment. |
| public SourceLocator | Returns: The location within the stylesheet, or null if not known.Get the current locater in the stylesheet. |
| public SubContextList | Returns: the sub-context node list.Get the current axes iterator, or return null if none. |
| public final URIResolver | Returns: a URI resolver, which may be null.Get the URIResolver associated with this execution context. |
| public final VariableStack | Returns: the variable stack, which should not be null.Get the variable stack, which is in charge of variables and parameters. |
| private void | |
| public boolean | |
| public final void | |
| public final void | popCurrentExpressionNode()
Pop the current node that is the expression's context (i.e. for current() support). |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public void | |
| public void | |
| public final void | |
| public final void | pushContextNodeList(DTMIterator
the current node list,
also referred to here as a context node list. nl)Set the current context node list. |
| public final void | pushCurrentExpressionNode(int
The sub-expression node to be current. n)Set the current node that is the expression's context (i.e. for current() support). |
| public final void | |
| public final void | pushCurrentNodeAndExpression(int
the current node. cn, int the sub-expression context node. en)Set the current context node and expression node. |
| public final void | pushExpressionState(int
the current node. cn, int the sub-expression context node. en, PrefixResolver the namespace context (prefix resolver. nc)Push the current context node, expression node, and prefix resolver. |
| public final void | |
| public final void | pushNamespaceContext(PrefixResolver
the prefix resolver to be used for resolving prefixes to
namespace URLs. pr)Push a current namespace context for the xpath. |
| public final void | pushNamespaceContextNull()
Just increment the namespace contest stack, so that setNamespaceContext can be used on the slot. |
| public final void | |
| public final void | |
| public void | |
| public void | pushSAXLocator(SourceLocator
The location within the stylesheet. location)Set the current locater in the stylesheet. |
| public void | pushSAXLocatorNull()
Push a slot on the locations stack so that setSAXLocator can be repeatedly called. |
| public final void | |
| public boolean | Returns: true if the DTM was removed, false if it was put back in a lru pool.The DTM to be released. dtm, boolean True if the DTM should be removed no matter what. shouldHardDelete)Implements abstract com. Release a DTM either to a lru pool, or completely remove reference. |
| private final void | releaseDTMXRTreeFrags()
Cleans DTMXRTreeFrag objects by removing references to DTM and XPathContext objects. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setErrorListener(ErrorListener
A non-null ErrorListener reference. listener)Set the ErrorListener where errors and warnings are to be reported. |
| public final void | setNamespaceContext(PrefixResolver
the prefix resolver to be used for resolving prefixes to
namespace URLs. pr)Get the current namespace context for the xpath. |
| public void | setPrimaryReader(XMLReader
The reader of the primary source tree. reader)Set primary XMLReader associated with this execution context. |
| public void | setSAXLocator(SourceLocator
The location within the stylesheet. location)Set the current locater in the stylesheet. |
| public void | |
| public void | setURIResolver(URIResolver
the URIResolver to be associated with this
execution context, may be null to clear an already set resolver. resolver)Set the URIResolver associated with this execution context. |
| public final void | setVarStack(VariableStack
non-null reference to the variable stack. varStack)Get the variable stack, which is in charge of variables and parameters. |