Package gw.internal.gosu.parser
Class GosuClassParser
java.lang.Object
gw.internal.gosu.parser.ParserBase
gw.internal.gosu.parser.GosuClassParser
- All Implemented Interfaces:
IParserPart,ITokenizerOffsetMarker,IGosuClassParser
-
Field Summary
Fields inherited from class gw.internal.gosu.parser.ParserBase
_bDontOptimizeStatementLists, _offsetShift -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintprotected StringintnextIndexOfErrantDuplicateInnerClass(IGosuClassInternal enclosingGsClass, IGosuClassInternal innerClass) static voidparseAnonymousInnerClass(GosuParser gosuParser, IGosuClassInternal innerGsClass) voidparseDeclarations(IGosuClass gsCls) Parses all declarations including:
Fields Methods Properties Inner types, recursivelyvoidparseDefinitions(IGosuClass gsCls) voidprocessFunctionSymbol(DynamicFunctionSymbol dfs, IGosuClassInternal gsClass) toString()static booleanviolatesRepeatable(List<IGosuAnnotation> annotations, IGosuAnnotation anno) Methods inherited from class gw.internal.gosu.parser.ParserBase
addBlockToBlockStack, captureAllSymbols, captureSymbol, copyBlockStackTo, eatBlock, eatBlock, eatOptionalSemiColon, eatTypeLiteral, findAndWrapLocation, findMathOpMethod, getCurrentEnclosingGosuClass, getCurrentlyInferringFunctionTypeVars, getOwner, getParsingAnonymousClass, getUncapturedSymbol, getValidator, isDontOptimizeStatementLists, isEvalClass, isParsingBlock, match, match, match, match, match, matchDeclarationKeyword, parseAnnotation, parseDotPathWord, peekExpression, peekInferringFunctionTypeVariableTypes, peekStatement, popExpression, popInferringFunctionTypeVariableTypes, popStatement, possiblyWrapWithCoercion, possiblyWrapWithImplicitCoercion, pushCurrentBlock, pushExpression, pushInferringFunctionTypeVars, pushStatement, resolveNamespace, resolveNamespaceSymbol, resolveRuntimeType, resolveSymbol, resolveType, resolveType, resolveTypeForArithmeticExpression, setBlocks, setDontOptimizeStatementLists, setIgnoreWarnings, setLineNumShift, setLocationForImplicitTypeAs, setOffsetShift, setOwner, setSnapshotSymbols, setSubTree, setValidator, shouldSnapshotSymbols, verifyComparable, verifyComparable, verifyComparable, verifyModifiersForFeature, verifyNonVoidExpression, verifyParsedElement, verifyParsedElement, verifyTypesComparable, verifyTypesComparableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface gw.lang.parser.IParserPart
getOwner, isDontOptimizeStatementLists, setDontOptimizeStatementLists, setLineNumShift, setValidator
-
Constructor Details
-
GosuClassParser
-
-
Method Details
-
parseAnonymousInnerClass
-
getScript
- Specified by:
getScriptin classParserBase
-
getLineNumShift
public int getLineNumShift()- Specified by:
getLineNumShiftin interfaceIParserPart- Overrides:
getLineNumShiftin classParserBase
-
getOffsetShift
public int getOffsetShift()- Specified by:
getOffsetShiftin interfaceIParserPart- Overrides:
getOffsetShiftin classParserBase
-
getOffsetMark
public int getOffsetMark()- Specified by:
getOffsetMarkin interfaceITokenizerOffsetMarker
-
getClassStatement
-
parseDeclarations
Parses all declarations including:
- Fields
- Methods
- Properties
- Inner types, recursively
- Specified by:
parseDeclarationsin interfaceIGosuClassParser
-
parseDefinitions
- Specified by:
parseDefinitionsin interfaceIGosuClassParser
-
processFunctionSymbol
-
resolveFunctionAndPropertyDecls
- Specified by:
resolveFunctionAndPropertyDeclsin interfaceIGosuClassParser
-
nextIndexOfErrantDuplicateInnerClass
public int nextIndexOfErrantDuplicateInnerClass(IGosuClassInternal enclosingGsClass, IGosuClassInternal innerClass) -
violatesRepeatable
-
toString
-