Package org.antlr.v4.runtime.tree.xpath
Class XPathTokenAnywhereElement
- java.lang.Object
-
- org.antlr.v4.runtime.tree.xpath.XPathElement
-
- org.antlr.v4.runtime.tree.xpath.XPathTokenAnywhereElement
-
public class XPathTokenAnywhereElement 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 XPathTokenAnywhereElement(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
-
XPathTokenAnywhereElement
public XPathTokenAnywhereElement(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
-
-