public abstract class Preprocessor2 extends Object
| Constructor and Description |
|---|
Preprocessor2() |
| Modifier and Type | Method and Description |
|---|---|
void |
endLexing(LexerOutput output)
Method calls after having lexed a source code.
|
abstract boolean |
process(Token token,
LexerOutput output)
This method is called just before adding a new Token to the LexerOutput.
|
void |
startLexing()
Method calls before starting lexing the source code.
|
public abstract boolean process(Token token, LexerOutput output)
token - the token to preprocessoutput - the lexer output that can be used to inject any tokens.public void endLexing(LexerOutput output)
public void startLexing()
Copyright © 2009–2018 SonarSource. All rights reserved.