Top Inners Fields Constructors Methods
com.sun.webkit.dom

public Class NodeIteratorImpl

extends Object
implements NodeIterator
Class Inheritance
All Implemented Interfaces
org.w3c.dom.traversal.NodeIterator
Imports
com.sun.webkit.Disposer, .DisposerRecord, org.w3c.dom.Node, org.w3c.dom.traversal.NodeFilter, .NodeIterator

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final long

Constructor Summary

AccessConstructor and Description
pack-priv
NodeIteratorImpl(long peer)

Method Summary

Modifier and TypeMethod and Description
pack-priv static NodeIterator
create(long peer)

public void
detach()

Implements org.w3c.dom.traversal.NodeIterator.detach.

Detaches the NodeIterator from the set which it iterated over, releasing any computational resources and placing the NodeIterator in the INVALID state.

pack-priv static native void
detachImpl(long peer)

private static native void
dispose(long peer)

public boolean
equals(Object
the reference object with which to compare.
that
)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

public boolean
getExpandEntityReferences()

Implements org.w3c.dom.traversal.NodeIterator.getExpandEntityReferences.

The value of this flag determines whether the children of entity reference nodes are visible to the NodeIterator.

pack-priv static native boolean
public NodeFilter
getFilter()

Implements org.w3c.dom.traversal.NodeIterator.getFilter.

The NodeFilter used to screen nodes.

pack-priv static native long
getFilterImpl(long peer)

pack-priv static NodeIterator
getImpl(long peer)

pack-priv long
pack-priv static long
public boolean
pack-priv static native boolean
public Node
pack-priv static native long
public Node
getRoot()

Implements org.w3c.dom.traversal.NodeIterator.getRoot.

The root node of the NodeIterator, as specified when it was created.

pack-priv static native long
getRootImpl(long peer)

public int
getWhatToShow()

Implements org.w3c.dom.traversal.NodeIterator.getWhatToShow.

This attribute determines which node types are presented via the NodeIterator.

pack-priv static native int
getWhatToShowImpl(long peer)

public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for this object.

public Node
nextNode()

Implements org.w3c.dom.traversal.NodeIterator.nextNode.

Returns the next node in the set and advances the position of the NodeIterator in the set.

pack-priv static native long
nextNodeImpl(long peer)

public Node
previousNode()

Implements org.w3c.dom.traversal.NodeIterator.previousNode.

Returns the previous node in the set and moves the position of the NodeIterator backwards in the set.

pack-priv static native long
previousNodeImpl(long peer)

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAlltoStringwaitwaitwait

Field Detail

peerback to summary
private final long peer

Constructor Detail

NodeIteratorImplback to summary
pack-priv NodeIteratorImpl(long peer)

Method Detail

createback to summary
pack-priv static NodeIterator create(long peer)
detachback to summary
public void detach()

Implements org.w3c.dom.traversal.NodeIterator.detach.

Doc from org.w3c.dom.traversal.NodeIterator.detach.

Detaches the NodeIterator from the set which it iterated over, releasing any computational resources and placing the NodeIterator in the INVALID state. After detach has been invoked, calls to nextNode or previousNode will raise the exception INVALID_STATE_ERR.

detachImplback to summary
pack-priv static native void detachImpl(long peer)
disposeback to summary
private static native void dispose(long peer)
equalsback to summary
public boolean equals(Object that)

Overrides java.lang.Object.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

Parameters
that:Object

the reference object with which to compare.

Returns:boolean

true if this object is the same as the obj argument; false otherwise.

Annotations
@Override
getExpandEntityReferencesback to summary
public boolean getExpandEntityReferences()

Implements org.w3c.dom.traversal.NodeIterator.getExpandEntityReferences.

Doc from org.w3c.dom.traversal.NodeIterator.getExpandEntityReferences.

The value of this flag determines whether the children of entity reference nodes are visible to the NodeIterator. If false, these children and their descendants will be rejected. Note that this rejection takes precedence over whatToShow and the filter. Also note that this is currently the only situation where NodeIterators may reject a complete subtree rather than skipping individual nodes.

To produce a view of the document that has entity references expanded and does not expose the entity reference node itself, use the whatToShow flags to hide the entity reference node and set expandEntityReferences to true when creating the NodeIterator. To produce a view of the document that has entity reference nodes but no entity expansion, use the whatToShow flags to show the entity reference node and set expandEntityReferences to false.

getExpandEntityReferencesImplback to summary
pack-priv static native boolean getExpandEntityReferencesImpl(long peer)
getFilterback to summary
public NodeFilter getFilter()

Implements org.w3c.dom.traversal.NodeIterator.getFilter.

Doc from org.w3c.dom.traversal.NodeIterator.getFilter.

The NodeFilter used to screen nodes.

getFilterImplback to summary
pack-priv static native long getFilterImpl(long peer)
getImplback to summary
pack-priv static NodeIterator getImpl(long peer)
getPeerback to summary
pack-priv long getPeer()
getPeerback to summary
pack-priv static long getPeer(NodeIterator arg)
getPointerBeforeReferenceNodeback to summary
public boolean getPointerBeforeReferenceNode()
getPointerBeforeReferenceNodeImplback to summary
pack-priv static native boolean getPointerBeforeReferenceNodeImpl(long peer)
getReferenceNodeback to summary
public Node getReferenceNode()
getReferenceNodeImplback to summary
pack-priv static native long getReferenceNodeImpl(long peer)
getRootback to summary
public Node getRoot()

Implements org.w3c.dom.traversal.NodeIterator.getRoot.

Doc from org.w3c.dom.traversal.NodeIterator.getRoot.

The root node of the NodeIterator, as specified when it was created.

getRootImplback to summary
pack-priv static native long getRootImpl(long peer)
getWhatToShowback to summary
public int getWhatToShow()

Implements org.w3c.dom.traversal.NodeIterator.getWhatToShow.

Doc from org.w3c.dom.traversal.NodeIterator.getWhatToShow.

This attribute determines which node types are presented via the NodeIterator. The available set of constants is defined in the NodeFilter interface. Nodes not accepted by whatToShow will be skipped, but their children may still be considered. Note that this skip takes precedence over the filter, if any.

getWhatToShowImplback to summary
pack-priv static native int getWhatToShowImpl(long peer)
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for this object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Returns:int

a hash code value for this object

Annotations
@Override
nextNodeback to summary
public Node nextNode()

Implements org.w3c.dom.traversal.NodeIterator.nextNode.

Doc from org.w3c.dom.traversal.NodeIterator.nextNode.

Returns the next node in the set and advances the position of the NodeIterator in the set. After a NodeIterator is created, the first call to nextNode() returns the first node in the set.

Returns:Node

The next Node in the set being iterated over, or null if there are no more members in that set.

nextNodeImplback to summary
pack-priv static native long nextNodeImpl(long peer)
previousNodeback to summary
public Node previousNode()

Implements org.w3c.dom.traversal.NodeIterator.previousNode.

Doc from org.w3c.dom.traversal.NodeIterator.previousNode.

Returns the previous node in the set and moves the position of the NodeIterator backwards in the set.

Returns:Node

The previous Node in the set being iterated over, or null if there are no more members in that set.

previousNodeImplback to summary
pack-priv static native long previousNodeImpl(long peer)
com.sun.webkit.dom back to summary

private Class NodeIteratorImpl.SelfDisposer

extends Object
implements DisposerRecord
Class Inheritance
All Implemented Interfaces
com.sun.webkit.DisposerRecord

Field Summary

Modifier and TypeField and Description
private final long

Constructor Summary

AccessConstructor and Description
pack-priv
SelfDisposer(final long peer)

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

peerback to summary
private final long peer

Constructor Detail

SelfDisposerback to summary
pack-priv SelfDisposer(final long peer)

Method Detail

disposeback to summary
public void dispose()

Implements com.sun.webkit.DisposerRecord.dispose.