Class RootNode
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.xpath.AbstractNode
-
- com.puppycrawl.tools.checkstyle.xpath.AbstractRootNode
-
- com.puppycrawl.tools.checkstyle.xpath.RootNode
-
- All Implemented Interfaces:
javax.xml.transform.Source,javax.xml.transform.SourceLocator,net.sf.saxon.lib.ActiveSource,net.sf.saxon.om.GroundedValue,net.sf.saxon.om.Item,net.sf.saxon.om.NodeInfo,net.sf.saxon.om.Sequence,net.sf.saxon.s9api.Location,org.xml.sax.Locator
public class RootNode extends AbstractRootNode
Represents DetailAST's root node of Xpath-tree.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<AbstractNode>createChildren()Iterates siblings of the current node and recursively creates new Xpath-nodes.intgetColumnNumber()Returns column number.intgetLineNumber()Returns line number.intgetTokenType()Getter method for token type.DetailASTgetUnderlyingNode()Returns underlying node.booleanhasChildNodes()Determine whether the node has any children.-
Methods inherited from class com.puppycrawl.tools.checkstyle.xpath.AbstractRootNode
compareOrder, getAttributeValue, getDepth, getLocalPart, getNodeKind, getParent, getRoot, iterateAxis
-
Methods inherited from class com.puppycrawl.tools.checkstyle.xpath.AbstractNode
atomize, copy, generateId, getAllNamespaces, getBaseURI, getChildren, getConfiguration, getDeclaredNamespaces, getDisplayName, getFingerprint, getNamespaceUri, getPrefix, getPublicId, getSchemaType, getStringValue, getSystemId, getTreeInfo, getUnicodeStringValue, getURI, hasFingerprint, isId, isIdref, isNilled, isSameNodeInfo, isStreamed, iterateAxis, saveLocation, setSystemId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.saxon.om.GroundedValue
asIterable, concatenate, containsNode, effectiveBooleanValue, materialize
-
Methods inherited from interface net.sf.saxon.om.Item
getLength, head, itemAt, iterate, reduce, subsequence
-
-
-
-
Method Detail
-
createChildren
protected java.util.List<AbstractNode> createChildren()
Iterates siblings of the current node and recursively creates new Xpath-nodes.- Specified by:
createChildrenin classAbstractNode- Returns:
- children list
-
hasChildNodes
public boolean hasChildNodes()
Determine whether the node has any children.- Returns:
trueis the node has any children.
-
getLineNumber
public int getLineNumber()
Returns line number.- Returns:
- line number
-
getColumnNumber
public int getColumnNumber()
Returns column number.- Returns:
- column number
-
getTokenType
public int getTokenType()
Getter method for token type.- Specified by:
getTokenTypein classAbstractNode- Returns:
- token type
-
getUnderlyingNode
public DetailAST getUnderlyingNode()
Returns underlying node.- Specified by:
getUnderlyingNodein classAbstractNode- Returns:
- underlying node
-
-