Package org.antlr.v4.runtime.tree.xpath
Class XPathRuleAnywhereElement
- java.lang.Object
-
- org.antlr.v4.runtime.tree.xpath.XPathElement
-
- org.antlr.v4.runtime.tree.xpath.XPathRuleAnywhereElement
-
public class XPathRuleAnywhereElement extends XPathElement
EitherID
at start of path or...//ID
in middle of path.
-
-
Field Summary
Fields Modifier and Type Field Description protected int
ruleIndex
-
Fields inherited from class org.antlr.v4.runtime.tree.xpath.XPathElement
invert, nodeName
-
-
Constructor Summary
Constructors Constructor Description XPathRuleAnywhereElement(String ruleName, int ruleIndex)
-
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
-
XPathRuleAnywhereElement
public XPathRuleAnywhereElement(String ruleName, int ruleIndex)
-
-
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
-
-