C# 클래스 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.
상속: IToken
파일 보기 프로젝트 열기: antlr/antlr4 1 사용 예제들

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
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 .

메소드 상세

RuleTagToken() 공개 메소드

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.
리턴 System

RuleTagToken() 공개 메소드

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. ///
리턴 System

ToString() 공개 메소드

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

public ToString ( ) : string
리턴 string