@Deprecated public class PreprocessorAction extends Object
| Modifier and Type | Field and Description |
|---|---|
static PreprocessorAction |
NO_OPERATION
Deprecated.
Use this no operation preprocessor action for improved readability and performances.
|
| Constructor and Description |
|---|
PreprocessorAction(int numberOfConsumedTokens,
List<Trivia> triviaToInject,
List<Token> tokensToInject)
Deprecated.
Construct a preprocessor action.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getNumberOfConsumedTokens()
Deprecated.
|
List<Token> |
getTokensToInject()
Deprecated.
|
List<Trivia> |
getTriviaToInject()
Deprecated.
|
public static final PreprocessorAction NO_OPERATION
Use this no operation preprocessor action for improved readability and performances.
Equivalent to: new PreprocessorAction(0, new ArrayList<Trivia>(), new ArrayList<Token>());
public PreprocessorAction(int numberOfConsumedTokens,
List<Trivia> triviaToInject,
List<Token> tokensToInject)
Construct a preprocessor action.
The actions are executed in this order:
Preprocessor actions are executed as follows:
numberOfConsumedTokens - Number of tokens consumed by the preprocessor, which can be 0. Consumed tokens are deleted and will not lead to successive
calls to the preprocessor.triviaToInject - Trivia to inject.tokensToInject - Tokens to inject. Injected tokens will not lead to successive calls to the preprocessor.Copyright © 2009–2018 SonarSource. All rights reserved.