public class AbapShallowParser extends ShallowParserBase<AbapShallowParser.EAbapParserStates>
| Modifier and Type | Class and Description |
|---|---|
static class |
AbapShallowParser.EAbapParserStates
The states used in this parser.
|
| Modifier and Type | Field and Description |
|---|---|
static java.util.Set<ETokenType> |
INCLUDE_FILTER_TOKEN_TYPES
Tokens that identify when to filter out an INCLUDE statement.
|
| Constructor and Description |
|---|
AbapShallowParser()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isFilteredToken(IToken token,
IToken previousToken)
Template method that can be used to ignore/filter certain tokens.
|
createRecognizer, endWithPossibleContinuation, filterTokens, inAnyState, inState, parse, parseFragment, parseTopLevelpublic static final java.util.Set<ETokenType> INCLUDE_FILTER_TOKEN_TYPES
INCLUDE foobar where foobar is another
ABAP source object, but not INCLUDE TYPE foobar or
INCLUDE STRUCTURE foobar. Since one may name their included
source object like an ABAP keyword, we need to have a blacklist approach
here.public AbapShallowParser()
protected boolean isFilteredToken(IToken token, IToken previousToken)
isFilteredToken in class ShallowParserBase<AbapShallowParser.EAbapParserStates>previousToken - the last non-filtered token (can be used for context sensitive
filtering). This may be null is no previous token exists.