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

public Class XPathTokenElement

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

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
XPathTokenElement(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

XPathTokenElementback to summary
public XPathTokenElement(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