public class RootNode extends AbstractNode
| Modifier and Type | Field and Description |
|---|---|
private DetailAST |
detailAst
The ast node.
|
private static AbstractNode[] |
EMPTY_ABSTRACT_NODE_ARRAY
Constant for optimization.
|
private static java.lang.String |
ROOT_NAME
Name of the root element.
|
| Constructor and Description |
|---|
RootNode(DetailAST detailAst)
Creates a new
RootNode instance. |
| Modifier and Type | Method and Description |
|---|---|
int |
compareOrder(net.sf.saxon.om.NodeInfo nodeInfo)
Compares current object with specified for order.
|
protected java.util.List<AbstractNode> |
createChildren()
Iterates siblings of the current node and
recursively creates new Xpath-nodes.
|
java.lang.String |
getAttributeValue(java.lang.String namespace,
java.lang.String localPart)
Returns attribute value.
|
int |
getColumnNumber()
Returns column number.
|
int |
getDepth()
Getter method for node depth.
|
int |
getLineNumber()
Returns line number.
|
java.lang.String |
getLocalPart()
Returns local part.
|
int |
getNodeKind()
Returns type of the node.
|
net.sf.saxon.om.NodeInfo |
getParent()
Returns parent.
|
net.sf.saxon.om.NodeInfo |
getRoot()
Returns root of the tree.
|
int |
getTokenType()
Getter method for token type.
|
DetailAST |
getUnderlyingNode()
Returns underlying node.
|
boolean |
hasChildNodes()
Determine whether the node has any children.
|
net.sf.saxon.tree.iter.AxisIterator |
iterateAxis(int axisNumber)
Determines axis iteration algorithm.
|
private static java.lang.UnsupportedOperationException |
throwUnsupportedOperationException()
Returns UnsupportedOperationException exception.
|
atomize, copy, generateId, getAllNamespaces, getBaseURI, getChildren, getConfiguration, getDeclaredNamespaces, getDisplayName, getFingerprint, getPrefix, getPublicId, getSchemaType, getStringValue, getStringValueCS, getSystemId, getTreeInfo, getURI, hasFingerprint, isId, isIdref, isNilled, isSameNodeInfo, isStreamed, iterateAxis, saveLocation, setSystemIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitattributes, children, children, equals, getGenre, hashCode, toShortStringgetLength, head, itemAt, iterate, reduce, subsequence, toGroundedValueprivate static final java.lang.String ROOT_NAME
private static final AbstractNode[] EMPTY_ABSTRACT_NODE_ARRAY
public int compareOrder(net.sf.saxon.om.NodeInfo nodeInfo)
UnsupportedOperationException because functionality not required here.nodeInfo - another NodeInfo objectprotected java.util.List<AbstractNode> createChildren()
createChildren in class AbstractNodepublic boolean hasChildNodes()
true is the node has any children.public java.lang.String getAttributeValue(java.lang.String namespace, java.lang.String localPart)
UnsupportedOperationException because root node
has no attributes.namespace - namespacelocalPart - actual name of the attributepublic java.lang.String getLocalPart()
public int getNodeKind()
public net.sf.saxon.om.NodeInfo getParent()
public net.sf.saxon.om.NodeInfo getRoot()
public net.sf.saxon.tree.iter.AxisIterator iterateAxis(int axisNumber)
UnsupportedOperationException in case,
when there is no axis iterator for given axisNumber.axisNumber - element from AxisInfoAxisIterator objectpublic int getLineNumber()
public int getColumnNumber()
public int getTokenType()
getTokenType in class AbstractNodepublic DetailAST getUnderlyingNode()
getUnderlyingNode in class AbstractNodepublic int getDepth()
getDepth in class AbstractNode0private static java.lang.UnsupportedOperationException throwUnsupportedOperationException()
Copyright © 2001-2022. All Rights Reserved.