public class XPathResult extends HtmlUnitScriptable
XPathResult
.org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator
Modifier and Type | Field and Description |
---|---|
static int |
ANY_TYPE
This code does not represent a specific type.
|
static int |
ANY_UNORDERED_NODE_TYPE
The result is a node set and will be accessed as a single node, which may be null if the node set is empty.
|
static int |
BOOLEAN_TYPE
The result is a boolean.
|
static int |
FIRST_ORDERED_NODE_TYPE
The result is a node set and will be accessed as a single node, which may be null if the node set is empty.
|
static int |
NUMBER_TYPE
The result is a number.
|
static int |
ORDERED_NODE_ITERATOR_TYPE
The result is a node set that will be accessed iteratively, which will produce document-ordered nodes.
|
static int |
ORDERED_NODE_SNAPSHOT_TYPE
The result is a node set that will be accessed as a snapshot list of nodes
that will be in original document order.
|
static int |
STRING_TYPE
The result is a string.
|
static int |
UNORDERED_NODE_ITERATOR_TYPE
The result is a node set that will be accessed iteratively, which may not produce nodes in a particular order.
|
static int |
UNORDERED_NODE_SNAPSHOT_TYPE
The result is a node set that will be accessed as a snapshot list of nodes
that may not be in a particular order.
|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
NOT_FOUND
Constructor and Description |
---|
XPathResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
getBooleanValue()
Returns the value of this boolean result.
|
boolean |
getInvalidIteratorState() |
double |
getNumberValue()
Returns the value of this number result.
|
int |
getResultType()
The code representing the type of this result, as defined by the type constants.
|
Node |
getSingleNodeValue()
The value of this single node result, which may be null.
|
int |
getSnapshotLength()
The number of nodes in the result snapshot.
|
String |
getStringValue()
Returns the value of this string result.
|
Node |
iterateNext()
Iterates and returns the next node from the node set or
null if there are no more nodes. |
void |
jsConstructor()
Creates an instance.
|
Node |
snapshotItem(int index)
Returns the indexth item in the snapshot collection.
|
clone, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getWindow, getWindow, getWindowFromTopCallScope, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, put, setClassName, setDomNode, setDomNode, setParentScope, setupPromise, setupRejectedPromise
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setPrototype, size
public static final int ANY_TYPE
public static final int NUMBER_TYPE
public static final int STRING_TYPE
public static final int BOOLEAN_TYPE
public static final int UNORDERED_NODE_ITERATOR_TYPE
ANY_TYPE
is requested.public static final int ORDERED_NODE_ITERATOR_TYPE
public static final int UNORDERED_NODE_SNAPSHOT_TYPE
public static final int ORDERED_NODE_SNAPSHOT_TYPE
public static final int ANY_UNORDERED_NODE_TYPE
public static final int FIRST_ORDERED_NODE_TYPE
public void jsConstructor()
public int getResultType()
public int getSnapshotLength()
public Node getSingleNodeValue()
public boolean getInvalidIteratorState()
public Node iterateNext()
null
if there are no more nodes.public Node snapshotItem(int index)
index
- Index into the snapshot collectionpublic double getNumberValue()
public boolean getBooleanValue()
public String getStringValue()
Copyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.