C# Class Antlr4.Runtime.Atn.LexerTypeAction

Implements the type lexer action by calling Lexer.Type with the assigned type.
Inheritance: ILexerAction
Show file Open project: antlr/antlr4

Public Methods

Method Description
Equals ( object obj ) : bool
Execute ( Lexer lexer ) : void

This action is implemented by calling Lexer.Type with the value provided by Type() .

GetHashCode ( ) : int
LexerTypeAction ( int type ) : Antlr4.Runtime

Constructs a new type action with the specified token type value.

ToString ( ) : string

Method Details

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

Execute() public method

This action is implemented by calling Lexer.Type with the value provided by Type() .

public Execute ( Lexer lexer ) : void
lexer Lexer
return void

GetHashCode() public method

public GetHashCode ( ) : int
return int

LexerTypeAction() public method

Constructs a new type action with the specified token type value.
public LexerTypeAction ( int type ) : Antlr4.Runtime
type int /// The type to assign to the token using /// /// . ///
return Antlr4.Runtime

ToString() public method

public ToString ( ) : string
return string