public class XPathResult extends SimpleScriptable
| 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.
|
| Constructor and Description |
|---|
XPathResult() |
| Modifier and Type | Method and Description |
|---|---|
Node |
jsxFunction_snapshotItem(int index)
Returns the indexth item in the snapshot collection.
|
int |
jsxGet_resultType()
The code representing the type of this result, as defined by the type constants.
|
Node |
jsxGet_singleNodeValue()
The value of this single node result, which may be null.
|
int |
jsxGet_snapshotLength()
The number of nodes in the result snapshot.
|
get, getBooleanArg, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getIntArg, getLog, getObjectArg, getPrototype, getScriptableFor, getStartingScope, getStringArg, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, makeScriptableFor, setDomNode, setDomNode, setHtmlElementassociateValue, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, equivalentValues, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, has, hasInstance, hasProperty, hasProperty, isConst, isSealed, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototypepublic 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 int jsxGet_resultType()
public int jsxGet_snapshotLength()
public Node jsxGet_singleNodeValue()
public Node jsxFunction_snapshotItem(int index)
index - Index into the snapshot collection.Copyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.