public class ObjectiveCShallowParser extends CStyleShallowParserBase
ELanguage.OBJECTIVE_C
.OPERATORS_WITH_ALTERNATIVE_REPRESENTATION
Constructor and Description |
---|
ObjectiveCShallowParser() |
Modifier and Type | Method and Description |
---|---|
protected void |
createClassElementsRules()
Parser rules for both attributes and methods.
|
protected void |
createMetaRules()
Creates rules for meta elements.
|
protected void |
createSubExpressionRules()
Creates rules for dealing with constructs in subexpressions, such as
anonymous classes, lambdas, etc.
|
protected void |
createTypeRules()
Parser rules for module/namespace and type creation.
|
protected java.util.EnumSet<ETokenType> |
getSimpleBlockKeywordsWithoutParentheses()
Returns the set of all keywords that start a simple block but are never
followed by parentheses (see implementers for examples).
|
protected java.util.EnumSet<ETokenType> |
getSimpleBlockKeywordsWithParentheses()
Returns the set of all keywords that start a simple block with optional
parentheses (see implementers for examples).
|
protected java.util.EnumSet<ETokenType> |
getStatementStartTokens()
Returns a set of all tokens that can start a statement, besides a type (see
CStyleShallowParserBase.typePatternInState(EGenericParserStates...) and a literal. |
protected RecognizerBase<EGenericParserStates> |
getSubExpressionRecognizer()
Returns a recognizer used for detecting sub expressions (anonymous classes,
lambdas, etc.) within expressions.
|
protected java.util.EnumSet<ETokenType> |
getTypeKeywords()
Returns the set of keywords that start a type.
|
protected RecognizerBase<EGenericParserStates> |
typePattern(RecognizerBase<EGenericParserStates> currentState)
Creates a recognizer that matches all valid types.
|
completeSimpleStatement, completeSimpleStatement, contributeSimpleStatementRules, createBasicBlockRules, createBlockRuleWithContinuation, createCaseRule, createDoWhileRule, createElseIfRule, createLambdaWithArrowRules, createSimpleStatementRule, createStatementRules, createTypedefRules, getTypeModifier, getValidIdentifiers, skipOptionalParameters, typePatternInState
createRecognizer, endWithPossibleContinuation, filterTokens, inAnyState, inState, isFilteredToken, parse, parseFragment, parseTopLevel
public ObjectiveCShallowParser()
protected void createClassElementsRules()
CStyleShallowParserBase
createClassElementsRules
in class CStyleShallowParserBase
protected void createTypeRules()
CStyleShallowParserBase
createTypeRules
in class CStyleShallowParserBase
protected void createMetaRules()
CStyleShallowParserBase
createMetaRules
in class CStyleShallowParserBase
protected void createSubExpressionRules()
createSubExpressionRules
in class CStyleShallowParserBase
protected java.util.EnumSet<ETokenType> getTypeKeywords()
getTypeKeywords
in class CStyleShallowParserBase
protected java.util.EnumSet<ETokenType> getSimpleBlockKeywordsWithParentheses()
getSimpleBlockKeywordsWithParentheses
in class CStyleShallowParserBase
protected java.util.EnumSet<ETokenType> getSimpleBlockKeywordsWithoutParentheses()
getSimpleBlockKeywordsWithoutParentheses
in class CStyleShallowParserBase
protected java.util.EnumSet<ETokenType> getStatementStartTokens()
CStyleShallowParserBase.typePatternInState(EGenericParserStates...)
and a literal.getStatementStartTokens
in class CStyleShallowParserBase
protected RecognizerBase<EGenericParserStates> typePattern(RecognizerBase<EGenericParserStates> currentState)
typePattern
in class CStyleShallowParserBase
protected RecognizerBase<EGenericParserStates> getSubExpressionRecognizer()
getSubExpressionRecognizer
in class CStyleShallowParserBase