Package org.antlr.v4.runtime.tree.xpath
Class XPathTokenElement
- java.lang.Object
-
- org.antlr.v4.runtime.tree.xpath.XPathElement
-
- org.antlr.v4.runtime.tree.xpath.XPathTokenElement
-
public class XPathTokenElement extends XPathElement
-
-
Field Summary
Fields Modifier and Type Field Description protected int
tokenType
-
Fields inherited from class org.antlr.v4.runtime.tree.xpath.XPathElement
invert, nodeName
-
-
Constructor Summary
Constructors Constructor Description XPathTokenElement(String tokenName, int tokenType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<ParseTree>
evaluate(ParseTree t)
Given tree rooted att
return all nodes matched by this path element.-
Methods inherited from class org.antlr.v4.runtime.tree.xpath.XPathElement
toString
-
-
-
-
Constructor Detail
-
XPathTokenElement
public XPathTokenElement(String tokenName, int tokenType)
-
-
Method Detail
-
evaluate
public Collection<ParseTree> evaluate(ParseTree t)
Description copied from class:XPathElement
Given tree rooted att
return all nodes matched by this path element.- Specified by:
evaluate
in classXPathElement
-
-