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

public Class XPathResultImpl

extends Object
implements XPathResult
Class Inheritance
All Implemented Interfaces
org.w3c.dom.xpath.XPathResult
Imports
com.sun.webkit.Disposer, .DisposerRecord, org.w3c.dom.DOMException, .Node, org.w3c.dom.xpath.XPathResult

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
private final long
public static final int
public static final int
public static final int

Constructor Summary

AccessConstructor and Description
pack-priv
XPathResultImpl(long peer)

Method Summary

Modifier and TypeMethod and Description
pack-priv static XPathResult
create(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
getBooleanValue()

Implements org.w3c.dom.xpath.XPathResult.getBooleanValue.

The value of this boolean result.

pack-priv static native boolean
pack-priv static XPathResult
getImpl(long peer)

public boolean
getInvalidIteratorState()

Implements org.w3c.dom.xpath.XPathResult.getInvalidIteratorState.

Signifies that the iterator has become invalid.

pack-priv static native boolean
public double
getNumberValue()

Implements org.w3c.dom.xpath.XPathResult.getNumberValue.

The value of this number result.

pack-priv static native double
getNumberValueImpl(long peer)

pack-priv long
pack-priv static long
public short
getResultType()

Implements org.w3c.dom.xpath.XPathResult.getResultType.

A code representing the type of this result, as defined by the type constants.

pack-priv static native short
getResultTypeImpl(long peer)

public Node
getSingleNodeValue()

Implements org.w3c.dom.xpath.XPathResult.getSingleNodeValue.

The value of this single node result, which may be null.

pack-priv static native long
public int
getSnapshotLength()

Implements org.w3c.dom.xpath.XPathResult.getSnapshotLength.

The number of nodes in the result snapshot.

pack-priv static native int
public String
getStringValue()

Implements org.w3c.dom.xpath.XPathResult.getStringValue.

The value of this string result.

pack-priv static native String
getStringValueImpl(long peer)

public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for this object.

public Node
iterateNext()

Implements org.w3c.dom.xpath.XPathResult.iterateNext.

Iterates and returns the next node from the node set or nullif there are no more nodes.

pack-priv static native long
iterateNextImpl(long peer)

public Node
snapshotItem(int
Index into the snapshot collection.
index
)

Implements org.w3c.dom.xpath.XPathResult.snapshotItem.

Returns the indexth item in the snapshot collection.

pack-priv static native long
snapshotItemImpl(long peer, int index)

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAlltoStringwaitwaitwait

Field Detail

ANY_TYPEback to summary
public static final int ANY_TYPE

Hides org.w3c.dom.xpath.XPathResult.ANY_TYPE.

ANY_UNORDERED_NODE_TYPEback to summary
public static final int ANY_UNORDERED_NODE_TYPE

Hides org.w3c.dom.xpath.XPathResult.ANY_UNORDERED_NODE_TYPE.

BOOLEAN_TYPEback to summary
public static final int BOOLEAN_TYPE

Hides org.w3c.dom.xpath.XPathResult.BOOLEAN_TYPE.

FIRST_ORDERED_NODE_TYPEback to summary
public static final int FIRST_ORDERED_NODE_TYPE

Hides org.w3c.dom.xpath.XPathResult.FIRST_ORDERED_NODE_TYPE.

NUMBER_TYPEback to summary
public static final int NUMBER_TYPE

Hides org.w3c.dom.xpath.XPathResult.NUMBER_TYPE.

ORDERED_NODE_ITERATOR_TYPEback to summary
public static final int ORDERED_NODE_ITERATOR_TYPE

Hides org.w3c.dom.xpath.XPathResult.ORDERED_NODE_ITERATOR_TYPE.

ORDERED_NODE_SNAPSHOT_TYPEback to summary
public static final int ORDERED_NODE_SNAPSHOT_TYPE

Hides org.w3c.dom.xpath.XPathResult.ORDERED_NODE_SNAPSHOT_TYPE.

peerback to summary
private final long peer
STRING_TYPEback to summary
public static final int STRING_TYPE

Hides org.w3c.dom.xpath.XPathResult.STRING_TYPE.

UNORDERED_NODE_ITERATOR_TYPEback to summary
public static final int UNORDERED_NODE_ITERATOR_TYPE

Hides org.w3c.dom.xpath.XPathResult.UNORDERED_NODE_ITERATOR_TYPE.

UNORDERED_NODE_SNAPSHOT_TYPEback to summary
public static final int UNORDERED_NODE_SNAPSHOT_TYPE

Hides org.w3c.dom.xpath.XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE.

Constructor Detail

XPathResultImplback to summary
pack-priv XPathResultImpl(long peer)

Method Detail

createback to summary
pack-priv static XPathResult create(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
getBooleanValueback to summary
public boolean getBooleanValue() throws DOMException

Implements org.w3c.dom.xpath.XPathResult.getBooleanValue.

Doc from org.w3c.dom.xpath.XPathResult.getBooleanValue.

The value of this boolean result.

getBooleanValueImplback to summary
pack-priv static native boolean getBooleanValueImpl(long peer)
getImplback to summary
pack-priv static XPathResult getImpl(long peer)
getInvalidIteratorStateback to summary
public boolean getInvalidIteratorState()

Implements org.w3c.dom.xpath.XPathResult.getInvalidIteratorState.

Doc from org.w3c.dom.xpath.XPathResult.getInvalidIteratorState.

Signifies that the iterator has become invalid. True if resultType is UNORDERED_NODE_ITERATOR_TYPE or ORDERED_NODE_ITERATOR_TYPE and the document has been modified since this result was returned.

getInvalidIteratorStateImplback to summary
pack-priv static native boolean getInvalidIteratorStateImpl(long peer)
getNumberValueback to summary
public double getNumberValue() throws DOMException

Implements org.w3c.dom.xpath.XPathResult.getNumberValue.

Doc from org.w3c.dom.xpath.XPathResult.getNumberValue.

The value of this number result. If the native double type of the DOM binding does not directly support the exact IEEE 754 result of the XPath expression, then it is up to the definition of the binding binding to specify how the XPath number is converted to the native binding number.

getNumberValueImplback to summary
pack-priv static native double getNumberValueImpl(long peer)
getPeerback to summary
pack-priv long getPeer()
getPeerback to summary
pack-priv static long getPeer(XPathResult arg)
getResultTypeback to summary
public short getResultType()

Implements org.w3c.dom.xpath.XPathResult.getResultType.

Doc from org.w3c.dom.xpath.XPathResult.getResultType.

A code representing the type of this result, as defined by the type constants.

getResultTypeImplback to summary
pack-priv static native short getResultTypeImpl(long peer)
getSingleNodeValueback to summary
public Node getSingleNodeValue() throws DOMException

Implements org.w3c.dom.xpath.XPathResult.getSingleNodeValue.

Doc from org.w3c.dom.xpath.XPathResult.getSingleNodeValue.

The value of this single node result, which may be null.

getSingleNodeValueImplback to summary
pack-priv static native long getSingleNodeValueImpl(long peer)
getSnapshotLengthback to summary
public int getSnapshotLength() throws DOMException

Implements org.w3c.dom.xpath.XPathResult.getSnapshotLength.

Doc from org.w3c.dom.xpath.XPathResult.getSnapshotLength.

The number of nodes in the result snapshot. Valid values for snapshotItem indices are 0 to snapshotLength-1 inclusive.

getSnapshotLengthImplback to summary
pack-priv static native int getSnapshotLengthImpl(long peer)
getStringValueback to summary
public String getStringValue() throws DOMException

Implements org.w3c.dom.xpath.XPathResult.getStringValue.

Doc from org.w3c.dom.xpath.XPathResult.getStringValue.

The value of this string result.

getStringValueImplback to summary
pack-priv static native String getStringValueImpl(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
iterateNextback to summary
public Node iterateNext() throws DOMException

Implements org.w3c.dom.xpath.XPathResult.iterateNext.

Doc from org.w3c.dom.xpath.XPathResult.iterateNext.

Iterates and returns the next node from the node set or nullif there are no more nodes.

Returns:Node

Returns the next node.

Exceptions
DOMException:
INVALID_STATE_ERR: The document has been mutated since the result was returned.
iterateNextImplback to summary
pack-priv static native long iterateNextImpl(long peer)
snapshotItemback to summary
public Node snapshotItem(int index) throws DOMException

Implements org.w3c.dom.xpath.XPathResult.snapshotItem.

Doc from org.w3c.dom.xpath.XPathResult.snapshotItem.

Returns the indexth item in the snapshot collection. If index is greater than or equal to the number of nodes in the list, this method returns null. Unlike the iterator result, the snapshot does not become invalid, but may not correspond to the current document if it is mutated.

Parameters
index:int

Index into the snapshot collection.

Returns:Node

The node at the indexth position in the NodeList, or null if that is not a valid index.

snapshotItemImplback to summary
pack-priv static native long snapshotItemImpl(long peer, int index)
com.sun.webkit.dom back to summary

private Class XPathResultImpl.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.