C# Class Antlr4.Runtime.Atn.LexerPushModeAction

Implements the pushMode lexer action by calling Antlr4.Runtime.Lexer.PushMode(int) with the assigned mode.
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 Antlr4.Runtime.Lexer.PushMode(int) with the value provided by Mode() .

GetHashCode ( ) : int
LexerPushModeAction ( int mode ) : Antlr4.Runtime

Constructs a new pushMode action with the specified mode 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 Antlr4.Runtime.Lexer.PushMode(int) with the value provided by Mode() .

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

GetHashCode() public method

public GetHashCode ( ) : int
return int

LexerPushModeAction() public method

Constructs a new pushMode action with the specified mode value.
public LexerPushModeAction ( int mode ) : Antlr4.Runtime
mode int /// The mode value to pass to /// /// . ///
return Antlr4.Runtime

ToString() public method

public ToString ( ) : string
return string