C# Class Antlr4.Runtime.Tree.Pattern.RuleTagToken

A Antlr4.Runtime.IToken object representing an entire subtree matched by a parser rule; e.g., <expr> . These tokens are created for TagChunk chunks where the tag corresponds to a parser rule.
Inheritance: IToken
Datei anzeigen Open project: antlr/antlr4 Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
RuleTagToken ( string ruleName, int bypassTokenType ) : System

Constructs a new instance of RuleTagToken with the specified rule name and bypass token type and no label.

RuleTagToken ( string ruleName, int bypassTokenType, string label ) : System

Constructs a new instance of RuleTagToken with the specified rule name, bypass token type, and label.

ToString ( ) : string

The implementation for RuleTagToken returns a string of the form ruleName:bypassTokenType .

Method Details

RuleTagToken() public method

Constructs a new instance of RuleTagToken with the specified rule name and bypass token type and no label.
/// IllegalArgumentException /// if /// /// is /// /// or empty. ///
public RuleTagToken ( string ruleName, int bypassTokenType ) : System
ruleName string The name of the parser rule this rule tag matches.
bypassTokenType int The bypass token type assigned to the parser rule.
return System

RuleTagToken() public method

Constructs a new instance of RuleTagToken with the specified rule name, bypass token type, and label.
/// IllegalArgumentException /// if /// /// is /// /// or empty. ///
public RuleTagToken ( string ruleName, int bypassTokenType, string label ) : System
ruleName string The name of the parser rule this rule tag matches.
bypassTokenType int The bypass token type assigned to the parser rule.
label string /// The label associated with the rule tag, or /// /// if /// the rule tag is unlabeled. ///
return System

ToString() public method

The implementation for RuleTagToken returns a string of the form ruleName:bypassTokenType .

public ToString ( ) : string
return string