|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sonar.sslr.api.PreprocessorAction
public class PreprocessorAction
This class encapsulates the actions to be performed by a preprocessor.
| Field Summary | |
|---|---|
static PreprocessorAction |
NO_OPERATION
Use this no operation preprocessor action for improved readability and performances. |
| Constructor Summary | |
|---|---|
PreprocessorAction(int numberOfConsumedTokens,
List<Trivia> triviaToInject,
List<Token> tokensToInject)
Construct a preprocessor action. |
|
| Method Summary | |
|---|---|
int |
getNumberOfConsumedTokens()
|
List<Token> |
getTokensToInject()
|
List<Trivia> |
getTriviaToInject()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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>());
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public int getNumberOfConsumedTokens()
public List<Trivia> getTriviaToInject()
public List<Token> getTokensToInject()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||