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

public abstract Class XPathElement

extends Object
Class Inheritance
Known Direct Subclasses
org.antlr.v4.runtime.tree.xpath.XPathRuleAnywhereElement, org.antlr.v4.runtime.tree.xpath.XPathRuleElement, org.antlr.v4.runtime.tree.xpath.XPathTokenAnywhereElement, org.antlr.v4.runtime.tree.xpath.XPathTokenElement, org.antlr.v4.runtime.tree.xpath.XPathWildcardAnywhereElement, org.antlr.v4.runtime.tree.xpath.XPathWildcardElement
Imports
org.antlr.v4.runtime.tree.ParseTree, java.util.Collection

Field Summary

Modifier and TypeField and Description
protected boolean
protected String

Constructor Summary

AccessConstructor and Description
public
XPathElement(String nodeName)

Construct element like /ID or ID or /* etc...

Method Summary

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

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

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

invertback to summary
protected boolean invert
nodeNameback to summary
protected String nodeName

Constructor Detail

XPathElementback to summary
public XPathElement(String nodeName)

Construct element like /ID or ID or /* etc... op is null if just node

Method Detail

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

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

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override