| Package | Description |
|---|---|
| org.htmlunit.xpath |
Implementation of XPath; for the most part, only classes meant for public use are
found at this root level of the XPath packages.
|
| org.htmlunit.xpath.axes |
Implementation of XPath LocationPath support -- primary classes are
LocPathIterator and UnionPathIterator.
|
| org.htmlunit.xpath.objects |
Implementation of XPath polymorphic type objects -- this package will grow
as XPath objects are expanded to support XML Schema data types.
|
| org.htmlunit.xpath.xml.dtm | |
| org.htmlunit.xpath.xml.dtm.ref |
| Modifier and Type | Class and Description |
|---|---|
class |
NodeSetDTM
The NodeSetDTM class can act as either a NodeVector, NodeList, or NodeIterator.
|
| Modifier and Type | Method and Description |
|---|---|
DTMIterator |
Expression.asIterator(XPathContext xctxt,
int contextNode)
Given an select expression and a context, evaluate the XPath and return the resulting iterator.
|
DTMIterator |
NodeSetDTM.cloneWithReset()
Get a cloned Iterator that is reset to the start of the iteration.
|
| Modifier and Type | Method and Description |
|---|---|
void |
NodeSetDTM.addNodes(DTMIterator iterator)
Copy NodeList members into this nodelist, adding in document order.
|
| Constructor and Description |
|---|
NodeSetDTM(DTMIterator ni)
Create a NodeSetDTM, and copy the members of the given DTMIterator into it.
|
| Modifier and Type | Class and Description | ||
|---|---|---|---|
class |
AttributeIterator
This class implements an optimized iterator for attribute axes patterns.
|
||
class |
BasicTestIterator
Base for iterators that handle predicates.
|
||
class |
ChildIterator
This class implements an optimized iterator for "node()" patterns, that is, any children of the
context node.
|
||
class |
ChildTestIterator
This class implements an optimized iterator for children patterns that have a node test, and
possibly a predicate.
|
||
class |
DescendantIterator
This class implements an optimized iterator for descendant, descendant-or-self, or "//foo"
patterns.
|
||
class |
LocPathIterator
This class extends NodeSetDTM, which implements NodeIterator, and fetches nodes one at a time in
document order based on a XPath. see class NodeSequence
This class is the dynamic wrapper for a Xalan DTMIterator instance, and provides random access
capabilities.
| ||
class |
OneStepIterator
This class implements a general iterator for those LocationSteps with only one step, and perhaps
a predicate.
|
||
class |
OneStepIteratorForward
This class implements a general iterator for those LocationSteps with only one step, and perhaps
a predicate, that only go forward (i.e.
|
||
class |
SelfIteratorNoPredicate
This class implements an optimized iterator for "." patterns, that is, the self axes without any
predicates.
|
||
class |
UnionChildIterator
This class defines a simplified type of union iterator that only tests along the child axes.
|
||
class |
UnionPathIterator
This class extends NodeSetDTM, which implements DTMIterator, and fetches nodes one at a time in
document order based on a XPath UnionExpr.
|
||
class |
WalkingIterator
Location path iterator that uses Walkers.
|
||
class |
WalkingIteratorSorted
This class iterates over set of nodes that needs to be sorted.
|
| Modifier and Type | Field and Description |
|---|---|
protected DTMIterator |
NodeSequence.m_iter
The functional iterator that fetches nodes.
|
protected DTMIterator[] |
UnionPathIterator.m_iterators
The location path iterators, one for each location path contained in the union
expression.
|
| Modifier and Type | Method and Description |
|---|---|
DTMIterator |
LocPathIterator.asIterator(XPathContext xctxt,
int contextNode)
Given an select expression and a context, evaluate the XPath and return the resulting iterator.
|
DTMIterator |
OneStepIterator.cloneWithReset()
Get a cloned Iterator that is reset to the start of the iteration.
|
DTMIterator |
NodeSequence.cloneWithReset()
Get a cloned Iterator that is reset to the start of the iteration.
|
DTMIterator |
LocPathIterator.cloneWithReset()
Get a cloned Iterator that is reset to the start of the iteration.
|
DTMIterator |
DescendantIterator.cloneWithReset()
Get a cloned Iterator that is reset to the start of the iteration.
|
DTMIterator |
ChildTestIterator.cloneWithReset()
Get a cloned Iterator that is reset to the start of the iteration.
|
DTMIterator |
BasicTestIterator.cloneWithReset()
Get a cloned Iterator that is reset to the start of the iteration.
|
DTMIterator |
IteratorPool.getInstance()
Get an instance of the given object in this pool
|
DTMIterator |
IteratorPool.getInstanceOrThrow()
Get an instance of the given object in this pool
|
static DTMIterator |
WalkerFactory.newDTMIterator(Compiler compiler,
int opPos,
boolean isTopLevel)
Create a new LocPathIterator iterator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
IteratorPool.freeInstance(DTMIterator obj)
Add an instance of the given object to the pool
|
void |
NodeSequence.setIter(DTMIterator iter)
Set the functional iterator that fetches nodes.
|
| Constructor and Description |
|---|
IteratorPool(DTMIterator original)
Constructor IteratorPool
|
| Modifier and Type | Class and Description |
|---|---|
class |
XNodeSet
This class represents an XPath nodeset object, and is capable of converting the nodeset to other
types, such as a string.
|
| Modifier and Type | Method and Description |
|---|---|
DTMIterator |
XObject.iter()
Cast result object to a nodelist.
|
DTMIterator |
XNodeSet.iter()
Cast result object to a nodelist.
|
DTMIterator |
XNodeSet.iterRaw()
Return the iterator without cloning, etc.
|
| Constructor and Description |
|---|
XNodeSet(DTMIterator val)
Construct a XNodeSet object.
|
| Modifier and Type | Method and Description |
|---|---|
DTMIterator |
DTMIterator.cloneWithReset()
Get a cloned Iterator that is reset to the start of the iteration.
|
| Modifier and Type | Method and Description |
|---|---|
DTMIterator |
DTMNodeList.getDTMIterator()
Access the wrapped DTMIterator.
|
| Constructor and Description |
|---|
DTMNodeIterator(DTMIterator dtmIterator)
Public constructor: Wrap a DTMNodeIterator around an existing and preconfigured DTMIterator
|
DTMNodeList(DTMIterator dtmIterator)
Public constructor: Wrap a DTMNodeList around an existing and preconfigured DTMIterator
|
Copyright © 2022–2023 HtmlUnit. All rights reserved.