C# Class Antlr4.Runtime.Tree.Xpath.XPathElement

Show file Open project: antlr/antlr4 Class Usage Examples

Protected Properties

Property Type Description
invert bool
nodeName string

Public Methods

Method Description
Evaluate ( IParseTree t ) : ICollection

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

ToString ( ) : string
XPathElement ( string nodeName ) : System.Collections.Generic

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

Method Details

Evaluate() public abstract method

Given tree rooted at t return all nodes matched by this path element.
public abstract Evaluate ( IParseTree t ) : ICollection
t IParseTree
return ICollection

ToString() public method

public ToString ( ) : string
return string

XPathElement() public method

Construct element like /ID or ID or /* etc... op is null if just node
public XPathElement ( string nodeName ) : System.Collections.Generic
nodeName string
return System.Collections.Generic

Property Details

invert protected property

protected bool invert
return bool

nodeName protected property

protected string nodeName
return string