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, typePatternInStatecreateRecognizer, endWithPossibleContinuation, filterTokens, inAnyState, inState, isFilteredToken, parse, parseFragment, parseTopLevelpublic ObjectiveCShallowParser()
protected void createClassElementsRules()
CStyleShallowParserBasecreateClassElementsRules in class CStyleShallowParserBaseprotected void createTypeRules()
CStyleShallowParserBasecreateTypeRules in class CStyleShallowParserBaseprotected void createMetaRules()
CStyleShallowParserBasecreateMetaRules in class CStyleShallowParserBaseprotected void createSubExpressionRules()
createSubExpressionRules in class CStyleShallowParserBaseprotected java.util.EnumSet<ETokenType> getTypeKeywords()
getTypeKeywords in class CStyleShallowParserBaseprotected java.util.EnumSet<ETokenType> getSimpleBlockKeywordsWithParentheses()
getSimpleBlockKeywordsWithParentheses in class CStyleShallowParserBaseprotected java.util.EnumSet<ETokenType> getSimpleBlockKeywordsWithoutParentheses()
getSimpleBlockKeywordsWithoutParentheses in class CStyleShallowParserBaseprotected java.util.EnumSet<ETokenType> getStatementStartTokens()
CStyleShallowParserBase.typePatternInState(EGenericParserStates...) and a literal.getStatementStartTokens in class CStyleShallowParserBaseprotected RecognizerBase<EGenericParserStates> typePattern(RecognizerBase<EGenericParserStates> currentState)
typePattern in class CStyleShallowParserBaseprotected RecognizerBase<EGenericParserStates> getSubExpressionRecognizer()
getSubExpressionRecognizer in class CStyleShallowParserBase