public class AbapPreprocessor extends java.lang.Object implements IPreprocessor
DATA: a TYPE i, b TYPE x.
DATA a TYPE i. DATA b TYPE x.
Constructor and Description |
---|
AbapPreprocessor() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isGeneratedFromAbapKettensatzStatement(UnmodifiableList<IToken> includedTokens)
Returns whether these tokens have been generated by the ABAP Preprocessor
during a "Kettensatz" expansion.
|
java.util.List<IToken> |
preprocess(java.lang.String uniformPath,
java.util.List<IToken> tokens)
Performs the actual preprocessing of the given tokens.
|
public AbapPreprocessor()
public java.util.List<IToken> preprocess(java.lang.String uniformPath, java.util.List<IToken> tokens)
preprocess
in interface IPreprocessor
uniformPath
- may be null if this information is not available.tokens
- A list of tokens that need to be preprocessed. The given list
may get modified.public static boolean isGeneratedFromAbapKettensatzStatement(UnmodifiableList<IToken> includedTokens)
one two three : four five, six seven.
which is expanded to
one two three four five. one two three six seven.
Of course, more segments are allowed and each segment can contain one
or more tokens. Imporant are the colon, commas, and dot.
Common use case: WRITE: x = 5, y = 1.