Class SourceModuleBinding
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Binding
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ModuleBinding
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.SourceModuleBinding
-
Nested Class Summary
Nested classes/interfaces inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ModuleBinding
ModuleBinding.UnNamedModuleNested classes/interfaces inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.env.IUpdatableModule
IUpdatableModule.AddExports, IUpdatableModule.AddReads, IUpdatableModule.UpdateKind, IUpdatableModule.UpdatesByKind -
Field Summary
FieldsFields inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ModuleBinding
ALL_UNNAMED, ANY, ANY_NAMED, declaredPackages, defaultNullness, environment, exportedPackages, implementations, mainClassName, modifiers, moduleName, openedPackages, requires, requiresTransitive, services, tagBits, UNNAMED, UNOBSERVABLE, usesFields inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Binding
ANY_EXCEPTION, ARRAY_TYPE, BASE_TYPE, DefaultLocationArrayContents, DefaultLocationField, DefaultLocationParameter, DefaultLocationReturnType, DefaultLocationsForTrueValue, DefaultLocationTypeArgument, DefaultLocationTypeBound, DefaultLocationTypeParameter, FIELD, GENERIC_TYPE, IMPORT, INTERSECTION_TYPE, INTERSECTION_TYPE18, LOCAL, METHOD, MODULE, NO_ANNOTATIONS, NO_COMPONENTS, NO_ELEMENT_VALUE_PAIRS, NO_EXCEPTIONS, NO_FIELDS, NO_MEMBER_TYPES, NO_METHODS, NO_MODULES, NO_NULL_DEFAULT, NO_PACKAGES, NO_PARAMETER_NAMES, NO_PARAMETERS, NO_PERMITTED_TYPES, NO_PLAIN_PACKAGES, NO_REFERENCE_TYPES, NO_SUPERINTERFACES, NO_TYPE_VARIABLES, NO_TYPES, NULL_UNSPECIFIED_BY_DEFAULT, NullnessDefaultMASK, PACKAGE, PARAMETERIZED_TYPE, PATTERN, POLY_TYPE, RAW_TYPE, RECORD_COMPONENT, TYPE, TYPE_PARAMETER, TYPE_USE, UNINITIALIZED_COMPONENTS, UNINITIALIZED_FIELDS, UNINITIALIZED_METHODS, UNINITIALIZED_REFERENCE_TYPES, VARIABLE, WILDCARD_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionSourceModuleBinding(char[] moduleName, CompilationUnitScope scope, LookupEnvironment rootEnv) Construct a named module from source. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidGet all the modules required by this module All required modules include modules explicitly specified as required in the module declaration as well as implicit dependencies - those specified as ' requires transitive ' by one of the dependencieslongCompute the tagbits for standard annotations.getImplementations(TypeBinding binding) getOpens()getUses()voidsetImplementations(TypeBinding infBinding, Collection<TypeBinding> resolvedImplementations) voidsetRequires(ModuleBinding[] requires, ModuleBinding[] requiresTransitive) voidsetServices(TypeBinding[] services) voidsetUses(TypeBinding[] uses) Methods inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ModuleBinding
addExports, addReads, addResolvedExport, addResolvedOpens, canAccess, computeUniqueKey, dependencyCollector, dependencyGraphCollector, getDefaultNullness, getExportRestrictions, getOpenRestrictions, getOrCreateDeclaredPackage, getPackageNamesForClassFile, getRequires, getRequiresTransitive, getTopLevelPackage, getVisiblePackage, hasUnstableAutoName, isAutomatic, isDeprecated, isOpen, isPackageExportedTo, isTransitivelyRequired, isUnnamed, kind, name, nameForCUCheck, nameForLookup, readableName, reads, recordExportRestrictions, recordOpensRestrictions, retrieveAnnotationHolder, setAnnotations, setMainClassName, setPackageNames, toStringMethods inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Binding
computeUniqueKey, initializeDeprecatedAnnotationTagBits, isAnnotationType, isParameter, isPatternVariable, isTaggedRepeatable, isValid, isValidBinding, isVolatile, problemId, setAnnotations, shortReadableName
-
Field Details
-
scope
-
-
Constructor Details
-
SourceModuleBinding
public SourceModuleBinding(char[] moduleName, CompilationUnitScope scope, LookupEnvironment rootEnv) Construct a named module from source.Side effects: adds the new module to root.knownModules, creates a new LookupEnvironment and links that into the scope.
-
-
Method Details
-
setRequires
-
setUses
-
getUses
- Overrides:
getUsesin classModuleBinding
-
getServices
- Overrides:
getServicesin classModuleBinding
-
getImplementations
- Overrides:
getImplementationsin classModuleBinding
-
setServices
-
setImplementations
public void setImplementations(TypeBinding infBinding, Collection<TypeBinding> resolvedImplementations) -
getAllRequiredModules
Description copied from class:ModuleBindingGet all the modules required by this module All required modules include modules explicitly specified as required in the module declaration as well as implicit dependencies - those specified as ' requires transitive ' by one of the dependencies- Overrides:
getAllRequiredModulesin classModuleBinding- Returns:
- An array of all required modules
-
getExports
- Overrides:
getExportsin classModuleBinding
-
getOpens
- Overrides:
getOpensin classModuleBinding
-
getAnnotationTagBits
public long getAnnotationTagBits()Description copied from class:BindingCompute the tagbits for standard annotations. For source types, these could require lazily resolving corresponding annotation nodes, in case of forward references. For type use bindings, this method still returns the tagbits corresponding to the type declaration binding.- Overrides:
getAnnotationTagBitsin classBinding- See Also:
-
ensureAnnotationsResolved
protected void ensureAnnotationsResolved() -
getAnnotations
- Overrides:
getAnnotationsin classBinding
-