프로퍼티 | 타입 | 설명 | |
---|---|---|---|
Append | Antlr4.Runtime.Atn.LexerActionExecutor |
메소드 | 설명 | |
---|---|---|
Equals ( object obj ) : bool | ||
Execute ( Lexer lexer, ICharStream input, int startIndex ) : void |
Execute the actions encapsulated by this executor within the context of a particular Antlr4.Runtime.Lexer . This method calls Antlr4.Runtime.IIntStream.Seek(int) to set the position of the input Antlr4.Runtime.ICharStream prior to calling ILexerAction.Execute(Antlr4.Runtime.Lexer) on a position-dependent action. Before the method returns, the input position will be restored to the same position it was in when the method was invoked.
|
|
FixOffsetBeforeMatch ( int offset ) : Antlr4.Runtime.Atn.LexerActionExecutor |
Creates a LexerActionExecutor which encodes the current offset for position-dependent lexer actions. Normally, when the executor encounters lexer actions where ILexerAction.IsPositionDependent() returns Prior to traversing a match transition in the ATN, the current offset from the token start index is assigned to all position-dependent lexer actions which have not already been assigned a fixed offset. By storing the offsets relative to the token start index, the DFA representation of lexer actions which appear in the middle of tokens remains efficient due to sharing among tokens of the same length, regardless of their absolute position in the input stream. If the current executor already has offsets assigned to all position-dependent lexer actions, the method returns
|
|
GetHashCode ( ) : int | ||
LexerActionExecutor ( ILexerAction lexerActions ) : Antlr4.Runtime |
Constructs an executor for a sequence of ILexerAction actions.
|
메소드 | 설명 | |
---|---|---|
Append ( Antlr4 lexerActionExecutor, ILexerAction lexerAction ) : Antlr4.Runtime.Atn.LexerActionExecutor |
public Execute ( Lexer lexer, ICharStream input, int startIndex ) : void | ||
lexer | Lexer | The lexer instance. |
input | ICharStream |
/// The input stream which is the source for the current token.
/// When this method is called, the current
/// |
startIndex | int |
/// The token start index. This value may be passed to
/// |
리턴 | void |
public FixOffsetBeforeMatch ( int offset ) : Antlr4.Runtime.Atn.LexerActionExecutor | ||
offset | int | /// The current offset to assign to all position-dependent /// lexer actions which do not already have offsets assigned. /// |
리턴 | Antlr4.Runtime.Atn.LexerActionExecutor |
public LexerActionExecutor ( ILexerAction lexerActions ) : Antlr4.Runtime | ||
lexerActions | ILexerAction | The lexer actions to execute. |
리턴 | Antlr4.Runtime |