Uses of Class
com.puppycrawl.tools.checkstyle.xpath.AbstractNode
Package
Description
Contains utils classes for checkstyle.
Contains the nodes implementations for XPATH queries and query generator.
-
Uses of AbstractNode in com.puppycrawl.tools.checkstyle.utils
Modifier and TypeMethodDescriptionstatic List<AbstractNode>
XpathUtil.createChildren
(AbstractNode root, AbstractNode parent, DetailAST firstChild) Iterates siblings of the given node and creates new Xpath-nodes.Modifier and TypeMethodDescriptionstatic List<AbstractNode>
XpathUtil.createChildren
(AbstractNode root, AbstractNode parent, DetailAST firstChild) Iterates siblings of the given node and creates new Xpath-nodes.static List<net.sf.saxon.om.NodeInfo>
XpathUtil.getXpathItems
(String xpath, AbstractNode rootNode) Returns list of nodes matching xpath expression given node context. -
Uses of AbstractNode in com.puppycrawl.tools.checkstyle.xpath
Modifier and TypeClassDescriptionclass
Represents element node of Xpath-tree.class
Represents root node of Xpath-tree.class
Represents attribute of the element.class
Represents DetailAST's element node of Xpath-tree.class
Represents DetailAST's root node of Xpath-tree.Modifier and TypeFieldDescriptionprivate static final AbstractNode[]
AbstractElementNode.EMPTY_ABSTRACT_NODE_ARRAY
Constant for optimization.private static final AbstractNode[]
AbstractRootNode.EMPTY_ABSTRACT_NODE_ARRAY
Constant for optimization.private final AbstractNode
AbstractElementNode.parent
The parent of the current node.private final AbstractNode
AbstractElementNode.root
The root node.Modifier and TypeMethodDescriptionprotected abstract List<AbstractNode>
AbstractNode.createChildren()
Creates nodes for children.protected List<AbstractNode>
AttributeNode.createChildren()
Creates nodes for children.protected List<AbstractNode>
ElementNode.createChildren()
Iterates children of the current node and recursively creates new Xpath-nodes.protected List<AbstractNode>
RootNode.createChildren()
Iterates siblings of the current node and recursively creates new Xpath-nodes.protected List<AbstractNode>
AbstractNode.getChildren()
Getter method for children.private List<AbstractNode>
AbstractElementNode.getFollowingSiblings()
Returns following siblings of the current node.private List<AbstractNode>
AbstractElementNode.getPrecedingSiblings()
Returns preceding siblings of the current node.ModifierConstructorDescriptionprotected
AbstractElementNode
(AbstractNode root, AbstractNode parent, int depth, int indexAmongSiblings) Creates a newAbstractElementNode
instance.ElementNode
(AbstractNode root, AbstractNode parent, DetailAST detailAst, int depth, int indexAmongSiblings) Creates a newElementNode
instance.