Class SourceElementParser
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.parser.TheOriginalJDTParserClass
org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser
org.aspectj.org.eclipse.jdt.internal.core.util.CommentRecorderParser
org.aspectj.org.eclipse.jdt.internal.compiler.SourceElementParser
- All Implemented Interfaces:
OperatorIds
,TypeIds
,ConflictedParser
,ParserBasicInformation
,TerminalTokens
- Direct Known Subclasses:
IndexingParser
A source element parser extracts structural and reference information
from a piece of source.
also see @ISourceElementRequestor
The structural investigation includes:
- the package statement
- import statements
- top-level types: package member, member types (member types of member types...)
- fields
- methods
If reference information is requested, then all source constructs are
investigated and type, field & method references are provided as well.
Any (parsing) problem encountered is also provided.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser
Parser.IDeclarationFactory
Nested classes/interfaces inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.parser.TheOriginalJDTParserClass
TheOriginalJDTParserClass.CaseLabelKind
-
Field Summary
Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.util.CommentRecorderParser
CommentIncrement
Fields inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser
aspectIntPtr, aspectIntStack
Fields inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.parser.TheOriginalJDTParserClass
annotationAsModifierSourceStart, annotationRecoveryActivated, asb, asr, astLengthPtr, astLengthStack, astPtr, astStack, AstStackIncrement, base_action, BracketKinds, caseFlagSet, casePtr, CASES_OMITTED_TAG, caseStack, check_table, checkExternalizeStrings, colonColonStart, compilationUnit, CurlyBracket, currentElement, currentToken, currentTokenStart, DEBUG, DEBUG_AUTOMATON, diet, dietInt, dimensions, endPosition, endStatementPosition, expressionLengthPtr, expressionLengthStack, expressionPtr, expressionStack, ExpressionStackIncrement, FALL_THROUGH_TAG, firstToken, forStartPosition, genericsIdentifiersLengthPtr, genericsIdentifiersLengthStack, genericsLengthPtr, genericsLengthStack, genericsPtr, genericsStack, GenericsStackIncrement, HALT, hasError, hasReportedError, identifierLengthPtr, identifierLengthStack, identifierPositionStack, identifierPtr, identifierStack, ignoreNextClosingBrace, ignoreNextOpeningBrace, in_symb, intPtr, intStack, javadoc, javadocParser, lastAct, lastCheckPoint, lastErrorEndPosition, lastErrorEndPositionBeforeRecovery, lastIgnoredToken, lastJavadocEnd, lastPosistion, lhs, listLength, listTypeParameterLength, lParenPos, methodRecoveryActivated, modifiers, modifiersSourceStart, name, nasb, nasr, nestedMethod, nestedType, nextIgnoredToken, nextTypeStart, non_terminal_index, optimizeStringLiterals, options, parsingJava11Plus, parsingJava14Plus, parsingJava15Plus, parsingJava17Plus, parsingJava8Plus, parsingJava9Plus, patternLengthPtr, patternLengthStack, patternPtr, patternStack, pendingRecoveredType, previewEnabled, problemReporter, rBraceEnd, rBraceStart, rBraceSuccessorStart, rBracketPosition, readableName, readManager, realBlockPtr, realBlockStack, recordStringLiterals, recoveredStaticInitializerStart, recoveredTypePtr, recoveredTypes, recovery_templates, recovery_templates_index, recoveryScanner, referenceContext, reportOnlyOneSyntaxError, reportSyntaxErrorIsRequired, RESTART, restartRecovery, RESUME, reverse_index, rhs, RoundBracket, rParenPos, rules_compliance, scanner, scope_la, scope_lhs, scope_prefix, scope_rhs, scope_state, scope_state_set, scope_suffix, SquareBracket, stack, StackIncrement, statementRecoveryActivated, statements_recovery_filter, stateStackLengthStack, stateStackTop, SUPER_CALL, switchNestingLevel, switchWithTry, synchronizedBlockSourceStart, term_action, term_check, terminal_index, THIS_CALL, typeAnnotationLengthPtr, typeAnnotationLengthStack, typeAnnotationPtr, typeAnnotationStack, TypeAnnotationStackIncrement, unstackedAct, valueLambdaNestDepth, variablesCounter, VERBOSE_RECOVERY
Fields inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.ast.OperatorIds
AND, AND_AND, DIVIDE, EQUAL, EQUAL_EQUAL, GREATER, GREATER_EQUAL, INSTANCEOF, LEFT_SHIFT, LESS, LESS_EQUAL, MINUS, MINUS_MINUS, MULTIPLY, NOT, NOT_EQUAL, NumberOfTables, OR, OR_OR, PLUS, PLUS_PLUS, QUESTIONCOLON, REMAINDER, RIGHT_SHIFT, TWIDDLE, UNSIGNED_RIGHT_SHIFT, XOR
Fields inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.ParserBasicInformation
ACCEPT_ACTION, EOFT_SYMBOL, EOLT_SYMBOL, ERROR_ACTION, ERROR_SYMBOL, LA_STATE_OFFSET, MAX_LA, MAX_NAME_LENGTH, NT_OFFSET, NUM_NON_TERMINALS, NUM_RULES, NUM_STATES, NUM_SYMBOLS, NUM_TERMINALS, SCOPE_SIZE, SCOPE_UBOUND, START_STATE
Fields inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.parser.TerminalTokens
TokenNameabstract, TokenNameafter, TokenNameAND, TokenNameAND_AND, TokenNameAND_EQUAL, TokenNamearound, TokenNameARROW, TokenNameaspect, TokenNameassert, TokenNameAT, TokenNameAT308, TokenNameAT308DOTDOTDOT, TokenNamebefore, TokenNameBeginCaseElement, TokenNameBeginCaseExpr, TokenNameBeginIntersectionCast, TokenNameBeginLambda, TokenNameBeginTypeArguments, TokenNameboolean, TokenNamebreak, TokenNamebyte, TokenNamecase, TokenNamecatch, TokenNamechar, TokenNameCharacterLiteral, TokenNameclass, TokenNameCOLON, TokenNameCOLON_COLON, TokenNameCOMMA, TokenNameCOMMENT_BLOCK, TokenNameCOMMENT_JAVADOC, TokenNameCOMMENT_LINE, TokenNameconst, TokenNamecontinue, TokenNamedeclare, TokenNamedefault, TokenNameDIVIDE, TokenNameDIVIDE_EQUAL, TokenNamedo, TokenNameDOT, TokenNamedouble, TokenNameDoubleLiteral, TokenNameElidedSemicolonAndRightBrace, TokenNameELLIPSIS, TokenNameelse, TokenNameenum, TokenNameEOF, TokenNameEQUAL, TokenNameEQUAL_EQUAL, TokenNameERROR, TokenNameexports, TokenNameextends, TokenNamefalse, TokenNamefinal, TokenNamefinally, TokenNamefloat, TokenNameFloatingPointLiteral, TokenNamefor, TokenNamegoto, TokenNameGREATER, TokenNameGREATER_EQUAL, TokenNameIdentifier, TokenNameif, TokenNameimplements, TokenNameimport, TokenNameinstanceof, TokenNameint, TokenNameIntegerLiteral, TokenNameinterface, TokenNameLBRACE, TokenNameLBRACKET, TokenNameLEFT_SHIFT, TokenNameLEFT_SHIFT_EQUAL, TokenNameLESS, TokenNameLESS_EQUAL, TokenNamelong, TokenNameLongLiteral, TokenNameLPAREN, TokenNameMINUS, TokenNameMINUS_EQUAL, TokenNameMINUS_MINUS, TokenNamemodule, TokenNameMULTIPLY, TokenNameMULTIPLY_EQUAL, TokenNamenative, TokenNamenew, TokenNamenon_sealed, TokenNameNOT, TokenNameNOT_EQUAL, TokenNameNotAToken, TokenNamenull, TokenNameopen, TokenNameopens, TokenNameOR, TokenNameOR_EQUAL, TokenNameOR_OR, TokenNamepackage, TokenNamePLUS, TokenNamePLUS_EQUAL, TokenNamePLUS_PLUS, TokenNamepointcut, TokenNameprivate, TokenNameprivileged, TokenNameprotected, TokenNameprovides, TokenNamepublic, TokenNameQUESTION, TokenNameRBRACE, TokenNameRBRACKET, TokenNameREMAINDER, TokenNameREMAINDER_EQUAL, TokenNamerequires, TokenNameRestrictedIdentifierpermits, TokenNameRestrictedIdentifierrecord, TokenNameRestrictedIdentifiersealed, TokenNameRestrictedIdentifierYield, TokenNamereturn, TokenNameRIGHT_SHIFT, TokenNameRIGHT_SHIFT_EQUAL, TokenNameRPAREN, TokenNameSEMICOLON, TokenNameshort, TokenNamestatic, TokenNamestrictfp, TokenNameStringLiteral, TokenNamesuper, TokenNameswitch, TokenNamesynchronized, TokenNameTextBlock, TokenNamethis, TokenNamethrow, TokenNamethrows, TokenNameto, TokenNametransient, TokenNametransitive, TokenNametrue, TokenNametry, TokenNameTWIDDLE, TokenNameUNSIGNED_RIGHT_SHIFT, TokenNameUNSIGNED_RIGHT_SHIFT_EQUAL, TokenNameuses, TokenNamevoid, TokenNamevolatile, TokenNamewhile, TokenNameWHITESPACE, TokenNamewith, TokenNameXOR, TokenNameXOR_EQUAL
Fields inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.lookup.TypeIds
BitAnyNullAnnotation, BitAutoCloseable, BitCloseable, BitCollection, BitList, BitMap, BitNonNullAnnotation, BitNonNullByDefaultAnnotation, BitNullableAnnotation, BitResourceFreeCloseable, BitUninitialized, BitUninternedType, BitWrapperCloseable, Boolean2Boolean, Boolean2Int, Boolean2String, BOXING, Byte2Byte, Byte2Char, Byte2Double, Byte2Float, Byte2Int, Byte2Long, Byte2Short, Byte2String, Char2Byte, Char2Char, Char2Double, Char2Float, Char2Int, Char2Long, Char2Short, Char2String, COMPILE_TYPE_MASK, Double2Byte, Double2Char, Double2Double, Double2Float, Double2Int, Double2Long, Double2Short, Double2String, Float2Byte, Float2Char, Float2Double, Float2Float, Float2Int, Float2Long, Float2Short, Float2String, IMPLICIT_CONVERSION_MASK, InheritableBits, Int2Byte, Int2Char, Int2Double, Int2Float, Int2Int, Int2Long, Int2Short, Int2String, Long2Byte, Long2Char, Long2Double, Long2Float, Long2Int, Long2Long, Long2Short, Long2String, NoId, Null2Null, Null2String, Object2boolean, Object2byte, Object2char, Object2double, Object2float, Object2int, Object2long, Object2Object, Object2short, Object2String, Short2Byte, Short2Char, Short2Double, Short2Float, Short2Int, Short2Long, Short2Short, Short2String, String2String, T_boolean, T_byte, T_char, T_ComGoogleCommonBasePreconditions, T_ComGoogleInjectInject, T_double, T_float, T_int, T_JavaIoException, T_JavaIoExternalizable, T_JavaIoObjectStreamException, T_JavaIoPrintStream, T_JavaIoSerializable, T_JavaLangAnnotationAnnotation, T_JavaLangAnnotationDocumented, T_JavaLangAnnotationElementType, T_JavaLangAnnotationInherited, T_JavaLangAnnotationRepeatable, T_JavaLangAnnotationRetention, T_JavaLangAnnotationRetentionPolicy, T_JavaLangAnnotationTarget, T_JavaLangAssertionError, T_JavaLangAutoCloseable, T_JavaLangBoolean, T_JavaLangByte, T_JavaLangCharacter, T_JavaLangClass, T_JavaLangClassNotFoundException, T_JavaLangCloneable, T_JavaLangDeprecated, T_JavaLangDouble, T_JavaLangEnum, T_JavaLangError, T_JavaLangException, T_JavaLangFloat, T_JavaLangFunctionalInterface, T_JavaLangIllegalArgumentException, T_JavaLangInteger, T_JavaLangInvokeMethodHandlePolymorphicSignature, T_JavaLangIterable, T_JavaLangLong, T_JavaLangNoClassDefError, T_JavaLangObject, T_JavaLangOverride, T_JavaLangRecord, T_JavaLangReflectConstructor, T_JavaLangReflectField, T_JavaLangReflectMethod, T_JavaLangRuntimeException, T_JavaLangSafeVarargs, T_JavaLangShort, T_JavaLangString, T_JavaLangStringBuffer, T_JavaLangStringBuilder, T_JavaLangSuppressWarnings, T_JavaLangSystem, T_JavaLangThrowable, T_JavaLangVoid, T_JavaUtilCollection, T_JavaUtilIterator, T_JavaUtilList, T_JavaUtilMap, T_JavaUtilObjects, T_JavaxInjectInject, T_JdkInternalPreviewFeature, T_JunitFrameworkAssert, T_LastWellKnownTypeId, T_long, T_null, T_OrgApacheCommonsLang3Validate, T_OrgApacheCommonsLangValidate, T_OrgEclipseCoreRuntimeAssert, T_OrgJunitAssert, T_OrgJunitJupiterApiAssertions, T_OrgJunitJupiterParamsProviderMethodSource, T_OrgSpringframeworkBeansFactoryAnnotationAutowired, T_short, T_undefined, T_void, UNBOXING
-
Constructor Summary
ConstructorDescriptionSourceElementParser(ISourceElementRequestor requestor, IProblemFactory problemFactory, CompilerOptions options, boolean reportLocalDeclarations, boolean optimizeStringLiterals)
SourceElementParser(ISourceElementRequestor requestor, IProblemFactory problemFactory, CompilerOptions options, boolean reportLocalDeclarations, boolean optimizeStringLiterals, boolean useSourceJavadocParser)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addUnknownRef(NameReference nameRef)
void
protected void
classInstanceCreation(boolean alwaysQualified)
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
consumeFieldAccess(boolean isSuperAccess)
protected void
consumeFormalParameter(boolean isVarArgs)
protected void
protected void
consumeMarkerAnnotation(boolean isTypeAnnotation)
protected void
protected void
consumeMethodHeaderName(boolean isAnnotationMethod)
protected void
consumeMethodHeaderNameWithTypeParameters(boolean isAnnotationMethod)
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
consumeNormalAnnotation(boolean isTypeAnnotation)
protected void
protected void
consumeSingleMemberAnnotation(boolean isTypeAnnotation)
protected void
protected void
protected void
protected void
consumeTypeElidedLambdaParameter(boolean parenthesized)
protected void
protected void
protected void
convertToMethodDeclaration(ConstructorDeclaration c, CompilationResult compilationResult)
protected CompilationUnitDeclaration
endParse(int act)
getTypeReference(int dim)
getUnspecifiedReference(boolean rejectTypeAnnotations)
protected ImportReference
newImportReference(char[][] tokens, long[] positions, boolean onDemand, int mod)
protected QualifiedNameReference
newQualifiedNameReference(char[][] tokens, long[] positions, int sourceStart, int sourceEnd)
protected SingleNameReference
newSingleNameReference(char[] source, long positions)
parseCompilationUnit(ICompilationUnit unit, boolean fullParse, org.eclipse.core.runtime.IProgressMonitor pm)
void
setRequestor(ISourceElementRequestor requestor)
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.util.CommentRecorderParser
consumeAnnotationTypeDeclarationHeader, consumeClassHeader, consumeEmptyTypeDeclaration, consumeEnterAnonymousClassBody, consumeEnumHeader, consumeInterfaceHeader, flushCommentsDefinedPriorTo, getCommentPtr, getCommentsPositions, initialize, initialize, initializeScanner, resetComments, resetModifiers
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser
consumeAroundDeclaration, consumeAroundHeader, consumeAroundHeaderName, consumeAspectDeclaration, consumeAspectHeader, consumeAspectHeaderName, consumeAspectHeaderNameWithTypeParameters, consumeAspectHeaderRest, consumeBasicAdviceDeclaration, consumeBasicAdviceHeader, consumeBasicAdviceHeaderName, consumeClassBodyDeclarationInAspect, consumeDeclareAnnotation, consumeDeclareAnnotationHeader, consumeDeclareDeclaration, consumeDeclareHeader, consumeEmptyPointcutDeclaration, consumeExitITDVariableWithInitializer, consumeExitITDVariableWithoutInitializer, consumeExtraParameterNoFormal, consumeExtraParameterWithFormal, consumeInterTypeConstructorDeclaration, consumeInterTypeConstructorHeader, consumeInterTypeConstructorHeaderName, consumeInterTypeFieldDeclaration, consumeInterTypeFieldHeader, consumeInterTypeMethodDeclaration, consumeInterTypeMethodHeader, consumeInterTypeMethodHeaderName, consumePointcutDeclaration, consumePointcutDesignatorOnAdvice, consumePointcutDesignatorOnDeclaration, consumePointcutHeader, consumePseudoToken, consumePseudoToken, consumePseudoTokenIdentifier, consumePseudoTokenIf, consumePseudoTokenLiteral, consumePseudoTokenModifier, consumePseudoTokenPrimitiveType, consumePseudoTokens, consumeQualifiedName, consumeRule, consumeSimpleAssertStatement, consumeToken, createConstructorDeclaration, createMethodDeclaration, display, getCurrentTokenStart, popPointcutDesignator, popPseudoTokens, pushOnAspectIntStack, shouldTryToRecover
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.parser.TheOriginalJDTParserClass
actFromTokenOrSynthetic, annotateTypeReference, annotationRecoveryCheckPoint, arrayInitializer, asi, atConflictScenario, augmentTypeWithAdditionalDimensions, automatonState, automatonWillShift, base_check, blockReal, buildFilesFromLPG, buildInitialRecoveryState, checkAndSetModifiers, checkForDiamond, checkNonNLSAfterBodyEnd, computeQualifiedGenericsFromRightSide, computeReverseTable, concatExpressionLists, concatGenericsLists, concatNodeLists, consumeAdditionalBound, consumeAdditionalBound1, consumeAdditionalBoundList, consumeAdditionalBoundList1, consumeAllocationHeader, consumeAnnotationName, consumeAnnotationTypeDeclaration, consumeAnnotationTypeMemberDeclaration, consumeAnnotationTypeMemberDeclarations, consumeAnnotationTypeMemberDeclarationsopt, consumeArgumentList, consumeArguments, consumeArrayAccess, consumeArrayCreationExpressionWithInitializer, consumeArrayCreationExpressionWithoutInitializer, consumeArrayCreationHeader, consumeArrayInitializer, consumeArrayTypeWithTypeArgumentsName, consumeAssertStatement, consumeAssignment, consumeAssignmentOperator, consumeBinaryExpression, consumeBinaryExpressionWithName, consumeBlock, consumeBlockStatement, consumeBlockStatements, consumeCaseLabel, consumeCaseLabelElement, consumeCaseLabelElements, consumeCaseLabelExpr, consumeCastExpressionLL1, consumeCastExpressionLL1WithBounds, consumeCastExpressionWithGenericsArray, consumeCastExpressionWithNameArray, consumeCastExpressionWithPrimitiveType, consumeCastExpressionWithQualifiedGenericsArray, consumeCatches, consumeCatchHeader, consumeCatchType, consumeClassBodyDeclaration, consumeClassBodyDeclarations, consumeClassBodyDeclarationsopt, consumeClassBodyopt, consumeClassDeclaration, consumeClassHeaderExtends, consumeClassHeaderImplements, consumeClassHeaderPermittedSubclasses, consumeClassInstanceCreationExpression, consumeClassInstanceCreationExpressionName, consumeClassInstanceCreationExpressionQualified, consumeClassOrInterface, consumeClassOrInterfaceName, consumeClassTypeElt, consumeClassTypeList, consumeCompactConstructorDeclaration, consumeCompactConstructorHeader, consumeCompactConstructorHeaderNameWithTypeParameters, consumeCompilationUnit, consumeConditionalExpression, consumeConditionalExpressionWithName, consumeConstantExpression, consumeConstructorBlockStatements, consumeConstructorBody, consumeConstructorDeclaration, consumeConstructorHeader, consumeCreateInitializer, consumeDefaultLabel, consumeDefaultLabelExpr, consumeDefaultModifiers, consumeDiet, consumeDims, consumeDimWithOrWithOutExpr, consumeDimWithOrWithOutExprs, consumeElidedLeftBraceAndReturn, consumeEmptyAnnotationTypeMemberDeclarationsopt, consumeEmptyArgumentListopt, consumeEmptyArguments, consumeEmptyArrayInitializer, consumeEmptyArrayInitializeropt, consumeEmptyBlockStatementsopt, consumeEmptyCatchesopt, consumeEmptyClassBodyDeclarationsopt, consumeEmptyDimsopt, consumeEmptyEnumDeclarations, consumeEmptyExpression, consumeEmptyForInitopt, consumeEmptyForUpdateopt, consumeEmptyInterfaceMemberDeclarationsopt, consumeEmptyInternalCompilationUnit, consumeEmptyMemberValueArrayInitializer, consumeEmptyMemberValuePairsopt, consumeEmptyMethodHeaderDefaultValue, consumeEmptyModuleStatementsOpt, consumeEmptyRecordBodyDeclaration, consumeEmptyStatement, consumeEmptySwitchBlock, consumeEmptyTypeArguments, consumeEnhancedForStatement, consumeEnhancedForStatementHeader, consumeEnhancedForStatementHeaderInit, consumeEnterCompilationUnit, consumeEnterInstanceCreationArgumentList, consumeEnterMemberValue, consumeEnterMemberValueArrayInitializer, consumeEnterVariable, consumeEnumBodyNoConstants, consumeEnumBodyWithConstants, consumeEnumConstantHeader, consumeEnumConstantHeaderName, consumeEnumConstants, consumeEnumDeclaration, consumeEnumDeclarations, consumeEqualityExpression, consumeEqualityExpressionWithName, consumeExitMemberValue, consumeExitTryBlock, consumeExplicitConstructorInvocation, consumeExplicitConstructorInvocationWithTypeArguments, consumeExplicitThisParameter, consumeExportsHeader, consumeExportsStatement, consumeExpression, consumeExpressionStatement, consumeFieldDeclaration, consumeForceNoDiet, consumeForInit, consumeFormalParameterList, consumeFormalParameterListopt, consumeGenericType, consumeGenericTypeArrayType, consumeGenericTypeNameArrayType, consumeGenericTypeWithDiamond, consumeGuardedPattern, consumeIdentifierOrNew, consumeImportDeclaration, consumeImportDeclarations, consumeInsideCastExpression, consumeInsideCastExpressionLL1, consumeInsideCastExpressionLL1WithBounds, consumeInsideCastExpressionWithQualifiedGenerics, consumeInstanceOfClassic, consumeInstanceOfExpression, consumeInstanceOfExpressionWithName, consumeInstanceofPattern, consumeInstanceofPrimaryParenPattern, consumeInstanceofPrimaryTypePattern, consumeInstanceOfRHS, consumeInterfaceDeclaration, consumeInterfaceHeaderExtends, consumeInterfaceHeaderPermittedSubClassesAndSubInterfaces, consumeInterfaceMemberDeclarations, consumeInterfaceMemberDeclarationsopt, consumeInterfaceMethodDeclaration, consumeInterfaceType, consumeInterfaceTypeList, consumeInternalCompilationUnit, consumeInternalCompilationUnitWithModuleDeclaration, consumeInternalCompilationUnitWithTypes, consumeInvalidAnnotationTypeDeclaration, consumeInvalidConstructorDeclaration, consumeInvalidConstructorDeclaration, consumeInvalidEnumDeclaration, consumeInvalidInterfaceDeclaration, consumeInvocationExpression, consumeLabel, consumeLambdaExpression, consumeLambdaHeader, consumeLeftParen, consumeLocalVariableDeclaration, consumeLocalVariableDeclarationStatement, consumeMemberValueArrayInitializer, consumeMemberValueAsName, consumeMemberValuePairs, consumeMemberValues, consumeMethodBody, consumeMethodDeclaration, consumeMethodHeader, consumeMethodHeaderDefaultValue, consumeMethodHeaderExtendedDims, consumeMethodHeaderRightParen, consumeMethodHeaderThrowsClause, consumeModifiers, consumeModifiers2, consumeModuleDeclaration, consumeModuleModifiers, consumeModuleStatements, consumeMultipleResources, consumeNameArrayType, consumeNestedLambda, consumeNestedMethod, consumeNestedType, consumeNonTypeUseName, consumeOneDimLoop, consumeOneMoreTypeAnnotation, consumeOnlySynchronized, consumeOnlyTypeArguments, consumeOnlyTypeArgumentsForCastExpression, consumeOpenBlock, consumeOpensHeader, consumeOpensStatement, consumePackageComment, consumePackageDeclaration, consumePackageDeclarationName, consumePackageDeclarationNameWithModifiers, consumeParenthesizedPattern, consumePostfixExpression, consumePrimaryNoNewArray, consumePrimaryNoNewArrayArrayType, consumePrimaryNoNewArrayName, consumePrimaryNoNewArrayNameThis, consumePrimaryNoNewArrayPrimitiveArrayType, consumePrimaryNoNewArrayPrimitiveType, consumePrimaryNoNewArrayThis, consumePrimaryNoNewArrayWithName, consumePrimaryPattern, consumePrimitiveArrayType, consumePrimitiveType, consumeProvidesInterface, consumePushCombineModifiers, consumePushLeftBrace, consumePushModifiers, consumePushModifiersForHeader, consumePushPosition, consumePushRealModifiers, consumeQualifiedName, consumeQualifiedSuperReceiver, consumeRecordBody, consumeRecordBodyDeclaration, consumeRecordBodyDeclarations, consumeRecordComponent, consumeRecordComponentHeaderRightParen, consumeRecordComponents, consumeRecordComponentsopt, consumeRecordDeclaration, consumeRecordHeader, consumeRecordHeaderName1, consumeRecordHeaderNameWithTypeParameters, consumeRecordHeaderPart, consumeRecoveryMethodHeaderName, consumeRecoveryMethodHeaderNameWithTypeParameters, consumeReduceImports, consumeReferenceExpression, consumeReferenceExpressionGenericTypeForm, consumeReferenceExpressionPrimaryForm, consumeReferenceExpressionSuperForm, consumeReferenceExpressionTypeArgumentsAndTrunk, consumeReferenceExpressionTypeForm, consumeReferenceType, consumeReferenceType1, consumeReferenceType2, consumeReferenceType3, consumeRequiresStatement, consumeResourceAsFieldAccess, consumeResourceAsLocalVariable, consumeResourceAsLocalVariableDeclaration, consumeResourceOptionalTrailingSemiColon, consumeResourceSpecification, consumeRestoreDiet, consumeRightParen, consumeServiceImplNameList, consumeSingleMemberAnnotationMemberValue, consumeSinglePkgName, consumeSingleRequiresModuleName, consumeSingleResource, consumeSingleServiceImplName, consumeSingleTargetModuleName, consumeStatementBreak, consumeStatementBreakWithLabel, consumeStatementCatch, consumeStatementContinue, consumeStatementContinueWithLabel, consumeStatementDo, consumeStatementExpressionList, consumeStatementFor, consumeStatementIfNoElse, consumeStatementIfWithElse, consumeStatementLabel, consumeStatementReturn, consumeStatementSwitch, consumeStatementSynchronized, consumeStatementThrow, consumeStatementTry, consumeStatementWhile, consumeStatementYield, consumeStaticInitializer, consumeStaticOnly, consumeSwitchBlock, consumeSwitchBlockStatement, consumeSwitchBlockStatements, consumeSwitchExpression, consumeSwitchExprThrowDefaultArm, consumeSwitchLabelCaseLhs, consumeSwitchLabeledBlock, consumeSwitchLabeledExpression, consumeSwitchLabeledRule, consumeSwitchLabeledRules, consumeSwitchLabeledRuleToBlockStatement, consumeSwitchLabeledThrowStatement, consumeSwitchLabels, consumeTargetModuleList, consumeTargetModuleNameList, consumeTextBlock, consumeThrowExpression, consumeTypeAnnotation, consumeTypeArgument, consumeTypeArgumentList, consumeTypeArgumentList1, consumeTypeArgumentList2, consumeTypeArgumentList3, consumeTypeArgumentReferenceType1, consumeTypeArgumentReferenceType2, consumeTypeArguments, consumeTypeDeclarations, consumeTypeHeaderNameWithTypeParameters, consumeTypeParameter1, consumeTypeParameter1WithExtends, consumeTypeParameter1WithExtendsAndBounds, consumeTypeParameterHeader, consumeTypeParameterList, consumeTypeParameterList1, consumeTypeParameters, consumeTypeParameterWithExtends, consumeTypeParameterWithExtendsAndBounds, consumeTypePattern, consumeTypeReferenceWithModifiersAndAnnotations, consumeUnannotatableQualifiedName, consumeUnaryExpression, consumeUnaryExpression, consumeUnionType, consumeUnionTypeAsClassType, consumeUsesHeader, consumeVariableDeclaratorIdParameter, consumeVariableDeclarators, consumeVariableInitializers, consumeWildcard, consumeWildcard1, consumeWildcard1WithBounds, consumeWildcard2, consumeWildcard2WithBounds, consumeWildcard3, consumeWildcard3WithBounds, consumeWildcardBounds1Extends, consumeWildcardBounds1Super, consumeWildcardBounds2Extends, consumeWildcardBounds2Super, consumeWildcardBounds3Extends, consumeWildcardBounds3Super, consumeWildcardBoundsExtends, consumeWildcardBoundsSuper, consumeWildcardWithBounds, consumeZeroAdditionalBounds, consumeZeroTypeAnnotations, containsComment, copyState, createFieldDeclaration, createIntersectionCastTypeReference, createJavadocParser, createLocalDeclaration, createStringLiteral, currentRecoveryType, dietParse, dispatchDeclarationInto, dispatchDeclarationIntoEnumDeclaration, dispatchDeclarationIntoRecordDeclaration, fetchNextToken, getAnnotationsOnDimensions, getAnnotationType, getFirstToken, getJavaDocPositions, getMethodBodies, getNextCharacter, getTypeReference, getTypeReferenceForGenericType, getUnspecifiedReference, goForBlockStatementsopt, goForBlockStatementsOrCatchHeader, goForClassBodyDeclarations, goForCompilationUnit, goForExpression, goForFieldDeclaration, goForGenericMethodDeclaration, goForHeaders, goForImportDeclaration, goForInitializer, goForMemberValue, goForMethodBody, goForPackageDeclaration, goForPackageDeclaration, goForRecordBodyDeclarations, goForTypeDeclaration, hasLeadingTagComment, ignoreExpressionAssignment, ignoreNextClosingBrace, in_symbol, initTables, isAssistParser, isIndirectlyInsideLambdaExpression, isParsingJava14, isParsingModuleDeclaration, jumpOverMethodBody, markEnclosingMemberWithLocalOrFunctionalType, markEnclosingMemberWithLocalType, moveRecoveryCheckpoint, nasi, newAllocationExpression, newMessageSend, newMessageSendWithTypeArguments, newReferenceExpression, ntAction, optimizedConcatNodeLists, original_state, parse, parse, parse, parse, parse, parse, parse, parseClassBodyDeclarations, parseExpression, parseLambdaExpression, parseMemberValue, parsePackageDeclaration, parseRecordBodyDeclarations, parseStatements, persistLineSeparatorPositions, prepareForBlockStatements, problemReporter, pushIdentifier, pushIdentifier, pushIdentifier, pushOnAstLengthStack, pushOnAstStack, pushOnCaseStack, pushOnExpressionStack, pushOnExpressionStackLengthStack, pushOnGenericsIdentifiersLengthStack, pushOnGenericsLengthStack, pushOnGenericsStack, pushOnIntStack, pushOnPatternStack, pushOnRealBlockStack, pushOnTypeAnnotationLengthStack, pushOnTypeAnnotationStack, readByteTable, readLongTable, readNameTable, readReadableNameTable, readTable, recoverStatements, recoveryExitFromVariable, recoveryTokenCheck, rejectIllegalLeadingTypeAnnotations, reportSyntaxErrors, resetStacks, resumeAfterRecovery, resumeOnSyntaxError, setMethodsFullRecovery, setStatementsRecovery, tAction, toString, typeElidedArgument, updateRecoveryState, updateSourceDeclarationParts, updateSourcePosition
-
Constructor Details
-
SourceElementParser
public SourceElementParser(ISourceElementRequestor requestor, IProblemFactory problemFactory, CompilerOptions options, boolean reportLocalDeclarations, boolean optimizeStringLiterals) -
SourceElementParser
public SourceElementParser(ISourceElementRequestor requestor, IProblemFactory problemFactory, CompilerOptions options, boolean reportLocalDeclarations, boolean optimizeStringLiterals, boolean useSourceJavadocParser)
-
-
Method Details
-
addUnknownRef
-
checkComment
public void checkComment()- Overrides:
checkComment
in classCommentRecorderParser
-
classInstanceCreation
protected void classInstanceCreation(boolean alwaysQualified)- Overrides:
classInstanceCreation
in classTheOriginalJDTParserClass
-
consumeAnnotationAsModifier
protected void consumeAnnotationAsModifier()- Overrides:
consumeAnnotationAsModifier
in classTheOriginalJDTParserClass
-
consumeClassInstanceCreationExpressionQualifiedWithTypeArguments
protected void consumeClassInstanceCreationExpressionQualifiedWithTypeArguments() -
consumeAnnotationTypeDeclarationHeaderName
protected void consumeAnnotationTypeDeclarationHeaderName()- Overrides:
consumeAnnotationTypeDeclarationHeaderName
in classTheOriginalJDTParserClass
-
consumeAnnotationTypeDeclarationHeaderNameWithTypeParameters
protected void consumeAnnotationTypeDeclarationHeaderNameWithTypeParameters() -
consumeCatchFormalParameter
protected void consumeCatchFormalParameter()- Overrides:
consumeCatchFormalParameter
in classTheOriginalJDTParserClass
-
consumeClassHeaderName1
protected void consumeClassHeaderName1()- Overrides:
consumeClassHeaderName1
in classTheOriginalJDTParserClass
-
consumeModuleHeader
protected void consumeModuleHeader()- Overrides:
consumeModuleHeader
in classTheOriginalJDTParserClass
-
consumeClassInstanceCreationExpressionWithTypeArguments
protected void consumeClassInstanceCreationExpressionWithTypeArguments()- Overrides:
consumeClassInstanceCreationExpressionWithTypeArguments
in classTheOriginalJDTParserClass
-
consumeConstructorHeaderName
protected void consumeConstructorHeaderName()- Overrides:
consumeConstructorHeaderName
in classTheOriginalJDTParserClass
-
consumeCompactConstructorHeaderName
protected void consumeCompactConstructorHeaderName()- Overrides:
consumeCompactConstructorHeaderName
in classTheOriginalJDTParserClass
-
consumeConstructorHeaderNameWithTypeParameters
protected void consumeConstructorHeaderNameWithTypeParameters()- Overrides:
consumeConstructorHeaderNameWithTypeParameters
in classTheOriginalJDTParserClass
-
consumeEnumConstantWithClassBody
protected void consumeEnumConstantWithClassBody()- Overrides:
consumeEnumConstantWithClassBody
in classTheOriginalJDTParserClass
-
consumeEnumConstantNoClassBody
protected void consumeEnumConstantNoClassBody()- Overrides:
consumeEnumConstantNoClassBody
in classTheOriginalJDTParserClass
-
consumeEnumHeaderName
protected void consumeEnumHeaderName()- Overrides:
consumeEnumHeaderName
in classTheOriginalJDTParserClass
-
consumeEnumHeaderNameWithTypeParameters
protected void consumeEnumHeaderNameWithTypeParameters()- Overrides:
consumeEnumHeaderNameWithTypeParameters
in classTheOriginalJDTParserClass
-
consumeExitVariableWithInitialization
protected void consumeExitVariableWithInitialization()- Overrides:
consumeExitVariableWithInitialization
in classTheOriginalJDTParserClass
-
consumeExitVariableWithoutInitialization
protected void consumeExitVariableWithoutInitialization()- Overrides:
consumeExitVariableWithoutInitialization
in classTheOriginalJDTParserClass
-
consumeFieldAccess
protected void consumeFieldAccess(boolean isSuperAccess)- Overrides:
consumeFieldAccess
in classTheOriginalJDTParserClass
-
consumeFormalParameter
protected void consumeFormalParameter(boolean isVarArgs)- Overrides:
consumeFormalParameter
in classTheOriginalJDTParserClass
-
consumeTypeElidedLambdaParameter
protected void consumeTypeElidedLambdaParameter(boolean parenthesized)- Overrides:
consumeTypeElidedLambdaParameter
in classTheOriginalJDTParserClass
-
consumeInterfaceHeaderName1
protected void consumeInterfaceHeaderName1()- Overrides:
consumeInterfaceHeaderName1
in classTheOriginalJDTParserClass
-
consumeMemberValuePair
protected void consumeMemberValuePair()- Overrides:
consumeMemberValuePair
in classTheOriginalJDTParserClass
-
consumeMarkerAnnotation
protected void consumeMarkerAnnotation(boolean isTypeAnnotation)- Overrides:
consumeMarkerAnnotation
in classTheOriginalJDTParserClass
-
consumeMethodHeaderName
protected void consumeMethodHeaderName(boolean isAnnotationMethod)- Overrides:
consumeMethodHeaderName
in classTheOriginalJDTParserClass
-
consumeMethodHeaderNameWithTypeParameters
protected void consumeMethodHeaderNameWithTypeParameters(boolean isAnnotationMethod)- Overrides:
consumeMethodHeaderNameWithTypeParameters
in classTheOriginalJDTParserClass
-
consumeMethodInvocationName
protected void consumeMethodInvocationName()- Overrides:
consumeMethodInvocationName
in classParser
-
consumeMethodInvocationNameWithTypeArguments
protected void consumeMethodInvocationNameWithTypeArguments()- Overrides:
consumeMethodInvocationNameWithTypeArguments
in classTheOriginalJDTParserClass
-
consumeMethodInvocationPrimary
protected void consumeMethodInvocationPrimary()- Overrides:
consumeMethodInvocationPrimary
in classTheOriginalJDTParserClass
-
consumeMethodInvocationPrimaryWithTypeArguments
protected void consumeMethodInvocationPrimaryWithTypeArguments()- Overrides:
consumeMethodInvocationPrimaryWithTypeArguments
in classTheOriginalJDTParserClass
-
consumeMethodInvocationSuper
protected void consumeMethodInvocationSuper()- Overrides:
consumeMethodInvocationSuper
in classTheOriginalJDTParserClass
-
consumeMethodInvocationSuperWithTypeArguments
protected void consumeMethodInvocationSuperWithTypeArguments()- Overrides:
consumeMethodInvocationSuperWithTypeArguments
in classTheOriginalJDTParserClass
-
consumeNormalAnnotation
protected void consumeNormalAnnotation(boolean isTypeAnnotation)- Overrides:
consumeNormalAnnotation
in classTheOriginalJDTParserClass
-
consumeProvidesStatement
protected void consumeProvidesStatement()- Overrides:
consumeProvidesStatement
in classTheOriginalJDTParserClass
-
consumeSingleMemberAnnotation
protected void consumeSingleMemberAnnotation(boolean isTypeAnnotation)- Overrides:
consumeSingleMemberAnnotation
in classTheOriginalJDTParserClass
-
consumeSingleStaticImportDeclarationName
protected void consumeSingleStaticImportDeclarationName()- Overrides:
consumeSingleStaticImportDeclarationName
in classTheOriginalJDTParserClass
-
consumeSingleTypeImportDeclarationName
protected void consumeSingleTypeImportDeclarationName()- Overrides:
consumeSingleTypeImportDeclarationName
in classTheOriginalJDTParserClass
-
consumeStaticImportOnDemandDeclarationName
protected void consumeStaticImportOnDemandDeclarationName()- Overrides:
consumeStaticImportOnDemandDeclarationName
in classTheOriginalJDTParserClass
-
consumeTypeImportOnDemandDeclarationName
protected void consumeTypeImportOnDemandDeclarationName()- Overrides:
consumeTypeImportOnDemandDeclarationName
in classTheOriginalJDTParserClass
-
consumeUsesStatement
protected void consumeUsesStatement()- Overrides:
consumeUsesStatement
in classTheOriginalJDTParserClass
-
consumeWithClause
protected void consumeWithClause()- Overrides:
consumeWithClause
in classTheOriginalJDTParserClass
-
convertToMethodDeclaration
public MethodDeclaration convertToMethodDeclaration(ConstructorDeclaration c, CompilationResult compilationResult)- Overrides:
convertToMethodDeclaration
in classTheOriginalJDTParserClass
-
endParse
- Overrides:
endParse
in classCommentRecorderParser
-
getTypeReference
- Overrides:
getTypeReference
in classTheOriginalJDTParserClass
-
getUnspecifiedReference
- Overrides:
getUnspecifiedReference
in classTheOriginalJDTParserClass
-
getUnspecifiedReferenceOptimized
- Overrides:
getUnspecifiedReferenceOptimized
in classTheOriginalJDTParserClass
-
newImportReference
protected ImportReference newImportReference(char[][] tokens, long[] positions, boolean onDemand, int mod) -
newQualifiedNameReference
protected QualifiedNameReference newQualifiedNameReference(char[][] tokens, long[] positions, int sourceStart, int sourceEnd) -
newSingleNameReference
-
parseCompilationUnit
public CompilationUnitDeclaration parseCompilationUnit(ICompilationUnit unit, boolean fullParse, org.eclipse.core.runtime.IProgressMonitor pm) -
setRequestor
-