Top Description Fields Constructors Methods
org.antlr.v4.runtime.tree.xpath

public Class XPathRuleAnywhereElement

extends XPathElement
Class Inheritance
Imports
org.antlr.v4.runtime.tree.ParseTree, .Trees, java.util.Collection

Either ID at start of path or ...//ID in middle of path.

Field Summary

Modifier and TypeField and Description
protected int
Inherited from org.antlr.v4.runtime.tree.xpath.XPathElement:
invertnodeName

Constructor Summary

AccessConstructor and Description
public
XPathRuleAnywhereElement(String ruleName, int ruleIndex)

Method Summary

Modifier and TypeMethod and Description
public Collection<ParseTree>
evaluate(ParseTree t)

Implements abstract org.antlr.v4.runtime.tree.xpath.XPathElement.evaluate.

Given tree rooted at t return all nodes matched by this path element.
Inherited from org.antlr.v4.runtime.tree.xpath.XPathElement:
toString

Field Detail

ruleIndexback to summary
protected int ruleIndex

Constructor Detail

XPathRuleAnywhereElementback to summary
public XPathRuleAnywhereElement(String ruleName, int ruleIndex)

Method Detail

evaluateback to summary
public Collection<ParseTree> evaluate(ParseTree t)

Implements abstract org.antlr.v4.runtime.tree.xpath.XPathElement.evaluate.

Doc from org.antlr.v4.runtime.tree.xpath.XPathElement.evaluate.

Given tree rooted at t return all nodes matched by this path element.

Annotations
@Override