Uses of Class
com.puppycrawl.tools.checkstyle.xpath.AbstractNode
-
Packages that use AbstractNode Package Description com.puppycrawl.tools.checkstyle.utils Contains utils classes for checkstyle.com.puppycrawl.tools.checkstyle.xpath Contains the nodes implementations for XPATH queries and query generator. -
-
Uses of AbstractNode in com.puppycrawl.tools.checkstyle.utils
Methods in com.puppycrawl.tools.checkstyle.utils that return types with arguments of type AbstractNode Modifier and Type Method Description static java.util.List<AbstractNode>XpathUtil. createChildren(AbstractNode root, AbstractNode parent, DetailAST firstChild)Iterates siblings of the given node and creates new Xpath-nodes.Methods in com.puppycrawl.tools.checkstyle.utils with parameters of type AbstractNode Modifier and Type Method Description static java.util.List<AbstractNode>XpathUtil. createChildren(AbstractNode root, AbstractNode parent, DetailAST firstChild)Iterates siblings of the given node and creates new Xpath-nodes.static java.util.List<net.sf.saxon.om.NodeInfo>XpathUtil. getXpathItems(java.lang.String xpath, AbstractNode rootNode)Returns list of nodes matching xpath expression given node context. -
Uses of AbstractNode in com.puppycrawl.tools.checkstyle.xpath
Subclasses of AbstractNode in com.puppycrawl.tools.checkstyle.xpath Modifier and Type Class Description classAbstractElementNodeRepresents element node of Xpath-tree.classAbstractRootNodeRepresents root node of Xpath-tree.classAttributeNodeRepresents attribute of the element.classElementNodeRepresents DetailAST's element node of Xpath-tree.classRootNodeRepresents DetailAST's root node of Xpath-tree.Fields in com.puppycrawl.tools.checkstyle.xpath declared as AbstractNode Modifier and Type Field Description private static AbstractNode[]AbstractElementNode. EMPTY_ABSTRACT_NODE_ARRAYConstant for optimization.private static AbstractNode[]AbstractRootNode. EMPTY_ABSTRACT_NODE_ARRAYConstant for optimization.private AbstractNodeAbstractElementNode. parentThe parent of the current node.private AbstractNodeAbstractElementNode. rootThe root node.Fields in com.puppycrawl.tools.checkstyle.xpath with type parameters of type AbstractNode Modifier and Type Field Description private java.util.List<AbstractNode>AbstractNode. childrenThe children.Methods in com.puppycrawl.tools.checkstyle.xpath that return AbstractNode Modifier and Type Method Description AbstractNodeAbstractElementNode. getRoot()Returns root.Methods in com.puppycrawl.tools.checkstyle.xpath that return types with arguments of type AbstractNode Modifier and Type Method Description protected abstract java.util.List<AbstractNode>AbstractNode. createChildren()Creates nodes for children.protected java.util.List<AbstractNode>AttributeNode. createChildren()Creates nodes for children.protected java.util.List<AbstractNode>ElementNode. createChildren()Iterates children of the current node and recursively creates new Xpath-nodes.protected java.util.List<AbstractNode>RootNode. createChildren()Iterates siblings of the current node and recursively creates new Xpath-nodes.protected java.util.List<AbstractNode>AbstractNode. getChildren()Getter method for children.private java.util.List<AbstractNode>AbstractElementNode. getFollowingSiblings()Returns following siblings of the current node.private java.util.List<AbstractNode>AbstractElementNode. getPrecedingSiblings()Returns preceding siblings of the current node.Constructors in com.puppycrawl.tools.checkstyle.xpath with parameters of type AbstractNode Constructor Description AbstractElementNode(AbstractNode root, AbstractNode parent, int depth, int indexAmongSiblings)Creates a newAbstractElementNodeinstance.ElementNode(AbstractNode root, AbstractNode parent, DetailAST detailAst, int depth, int indexAmongSiblings)Creates a newElementNodeinstance.
-