public class NodeIterator extends SimpleScriptable
NodeIterator
.Constructor and Description |
---|
NodeIterator()
Creates an instance.
|
NodeIterator(Node root,
double whatToShow,
net.sourceforge.htmlunit.corejs.javascript.Scriptable filter)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
detach()
This operation is a no-op.
|
net.sourceforge.htmlunit.corejs.javascript.Scriptable |
getFilter()
Returns the filter.
|
Node |
getReferenceNode()
Returns the
Node to which the iterator is anchored. |
Node |
getRoot()
Returns the root node.
|
double |
getWhatToShow()
Returns the types of nodes being presented.
|
boolean |
isPointerBeforeReferenceNode()
Returns whether the
NodeIterator is anchored before, or after the node. |
Node |
nextNode()
Returns the next Node in the document, or null if there are none.
|
Node |
previousNode()
Returns the previous Node in the document, or null if there are none.
|
clone, defineFunctionProperties, defineProperty, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setClassName, setDomNode, setDomNode, setHtmlElement, setParentScope
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setPrototype, size
public NodeIterator()
public NodeIterator(Node root, double whatToShow, net.sourceforge.htmlunit.corejs.javascript.Scriptable filter)
root
- The root node at which to begin the NodeIterator
's traversalwhatToShow
- an optional long representing a bitmask created by combining
the constant properties of NodeFilter
filter
- an object implementing the NodeFilter
interfacepublic Node getRoot()
public double getWhatToShow()
NodeFilter
public net.sourceforge.htmlunit.corejs.javascript.Scriptable getFilter()
public Node getReferenceNode()
Node
to which the iterator is anchored.public boolean isPointerBeforeReferenceNode()
NodeIterator
is anchored before, or after the node.public void detach()
public Node nextNode()
public Node previousNode()
Copyright © 2002–2015 Gargoyle Software Inc.. All rights reserved.