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

public Class XPathTokenAnywhereElement

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

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
XPathTokenAnywhereElement(String tokenName, int tokenType)

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

tokenTypeback to summary
protected int tokenType

Constructor Detail

XPathTokenAnywhereElementback to summary
public XPathTokenAnywhereElement(String tokenName, int tokenType)

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