public class PreprocessorAction
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static PreprocessorAction |
NO_OPERATION
Use this no operation preprocessor action for improved readability and performances.
|
Constructor and Description |
---|
PreprocessorAction(int numberOfConsumedTokens,
java.util.List<Trivia> triviaToInject,
java.util.List<Token> tokensToInject)
Construct a preprocessor action.
|
Modifier and Type | Method and Description |
---|---|
int |
getNumberOfConsumedTokens() |
java.util.List<Token> |
getTokensToInject() |
java.util.List<Trivia> |
getTriviaToInject() |
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, java.util.List<Trivia> triviaToInject, java.util.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 © 2012 SonarSource. All Rights Reserved.