Class BinaryModuleBinding
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.BinaryModuleBinding
- All Implemented Interfaces:
IUpdatableModule
-
Nested Class Summary
Nested classes/interfaces inherited from class ModuleBinding
ModuleBinding.UnNamedModuleNested classes/interfaces inherited from interface IUpdatableModule
IUpdatableModule.AddExports, IUpdatableModule.AddReads, IUpdatableModule.UpdateKind, IUpdatableModule.UpdatesByKindModifier and TypeInterfaceDescriptionstatic classstatic classstatic enumThe compiler first wires modules only, before then wiring packages based on the module graph.static classStructure for update operations, sorted byIUpdatableModule.UpdateKind. -
Field Summary
FieldsFields inherited from class ModuleBinding
ALL_UNNAMED, ANY, ANY_NAMED, declaredPackages, defaultNullness, environment, exportedPackages, implementations, mainClassName, modifiers, moduleName, openedPackages, requires, requiresTransitive, services, UNNAMED, UNOBSERVABLE, usesModifier and TypeFieldDescriptionstatic final char[]Name to represent unnamed modules in --add-exports and --add-reads options.static final char[]Module name for package/type lookup that doesn't care about modules.static final char[]Module name for package/type lookup that should look into all named modules.Packages declared in this module (indexed by qualified name).intprotected PlainPackageBinding[]char[]intchar[]protected PlainPackageBinding[]protected ModuleBinding[]protected ModuleBinding[]protected TypeBinding[]static final char[]Name of the unnamed module.static final char[]Module name for an unobservable moduleprotected TypeBinding[]Fields inherited from class Binding
ANY_EXCEPTION, ARRAY_TYPE, AWAITED_ANNOTATIONS, BASE_TYPE, DefaultLocationArrayContents, DefaultLocationField, DefaultLocationParameter, DefaultLocationRecordComponent, DefaultLocationReturnType, DefaultLocationsForTrueValue, DefaultLocationTypeArgument, DefaultLocationTypeBound, DefaultLocationTypeParameter, extendedTagBits, 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, tagBits, TYPE, TYPE_PARAMETER, TYPE_USE, UNINITIALIZED_COMPONENTS, UNINITIALIZED_FIELDS, UNINITIALIZED_METHODS, UNINITIALIZED_REFERENCE_TYPES, VARIABLE, WILDCARD_TYPEModifier and TypeFieldDescriptionstatic final ReferenceBinding[]static final intstatic final AnnotationBinding[]static final intstatic final intBit in defaultNullness bit vectors, representing the enum constant DefaultLocation#ARRAY_CONTENTSstatic final intBit in defaultNullness bit vectors, representing the enum constant DefaultLocation#FIELDstatic final intBit in defaultNullness bit vectors, representing the enum constant DefaultLocation#PARAMETERstatic final intBit in defaultNullness bit vectors, representing the enum constant DefaultLocation#RECORD_COMPONENTstatic final intBit in defaultNullness bit vectors, representing the enum constant DefaultLocation#RETURN_TYPEstatic final intstatic final intBit in defaultNullness bit vectors, representing the enum constant DefaultLocation#TYPE_ARGUMENTstatic final intBit in defaultNullness bit vectors, representing the enum constant DefaultLocation#TYPE_BOUNDstatic final intBit in defaultNullness bit vectors, representing the enum constant DefaultLocation#TYPE_PARAMETERintstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final AnnotationBinding[]static final RecordComponentBinding[]static final ElementValuePair[]static final ReferenceBinding[]static final FieldBinding[]static final ReferenceBinding[]static final MethodBinding[]static final ModuleBinding[]static final intstatic final PackageBinding[]static final char[][]static final TypeBinding[]static final ReferenceBinding[]static final PlainPackageBinding[]static final ReferenceBinding[]static final ReferenceBinding[]static final TypeVariableBinding[]static final TypeBinding[]static final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intlongstatic final intstatic final intstatic final intstatic final RecordComponentBinding[]static final FieldBinding[]static final MethodBinding[]static final ReferenceBinding[]static final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionstatic ModuleBindingcreate(IModule module, LookupEnvironment existingEnvironment) Construct a named module from binary, could be an auto module - or from an info from Java Model.getImplementations(TypeBinding binding) getOpens()getUses()Methods inherited from class ModuleBinding
addExports, addReads, addResolvedExport, addResolvedOpens, canAccess, computeUniqueKey, dependencyCollector, dependencyGraphCollector, getAllRequiredModules, 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, toStringModifier and TypeMethodDescriptionvoidaddExports(char[] packageName, char[][] targetModules) Perform an --add-exports update on the module.voidaddReads(char[] requiredModuleName) Perform an --add-reads update on the module.voidaddResolvedExport(PlainPackageBinding declaredPackage, char[][] targetModules) voidaddResolvedOpens(PlainPackageBinding declaredPackage, char[][] targetModules) booleancanAccess(PackageBinding pkg) Check if the given package is accessible by this module.char[]computeUniqueKey(boolean isLeaf) Get 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 dependenciesintString[]String[]getOrCreateDeclaredPackage(char[][] compoundName) char[][]getTopLevelPackage(char[] name) Return a package binding if there exists a package named name in this module's context and it can be seen by this module.getVisiblePackage(char[][] qualifiedPackageName) Answer the package of the given qualified name and visible in this module, ornullif no such package exists.booleanbooleanbooleanbooleanisOpen()booleanisPackageExportedTo(PackageBinding pkg, ModuleBinding client) Check if the specified package is owned by the current module and exported to the client module.booleanisTransitivelyRequired(ModuleBinding otherModule) booleanintkind()char[]name()Answer the name of this module.char[]Answer the name of this module as it should be used for hasCompilationUnit() checks.char[]Answer the name of this module as it should be used for package or type lookup.char[]booleanreads(ModuleBinding otherModule) protected voidrecordExportRestrictions(PlainPackageBinding exportedPackage, char[][] targetModules) protected voidrecordOpensRestrictions(PlainPackageBinding openedPackage, char[][] targetModules) retrieveAnnotationHolder(Binding binding, boolean forceInitialization) voidsetAnnotations(AnnotationBinding[] annotations, boolean forceStore) voidsetMainClassName(char[] mainClassName) Define the ModuleMainClass to be recorded in the generated module-info.class.voidsetPackageNames(SimpleSetOfCharArray packageNames) Passes names of packages to be recorded in the ModulePackages classfile attribute.toString()Methods inherited from class Binding
computeUniqueKey, getAnnotationTagBits, initializeDeprecatedAnnotationTagBits, isAnnotationType, isParameter, isPatternVariable, isTaggedRepeatable, isValid, isValidBinding, isVolatile, problemId, setAnnotations, shortReadableNameModifier and TypeMethodDescriptionchar[]longCompute the tagbits for standard annotations.voidCompute the tag bits for @Deprecated annotations, avoiding resolving entire annotation if not necessary.booleanbooleanbooleanbooleanstatic booleanfinal booleanbooleanintvoidsetAnnotations(AnnotationBinding[] annotations, Scope scope, boolean forceStore) char[]
-
Field Details
-
path
-
-
Method Details
-
create
Construct a named module from binary, could be an auto module - or from an info from Java Model.precondition: module must be either IBinaryModule or IModule.AutoModule
Side effects: adds the new module to root.knownModules and resolves its directives.
-
getExports
- Overrides:
getExportsin classModuleBinding
-
getOpens
- Overrides:
getOpensin classModuleBinding
-
getUses
- Overrides:
getUsesin classModuleBinding
-
getServices
- Overrides:
getServicesin classModuleBinding
-
getImplementations
- Overrides:
getImplementationsin classModuleBinding
-
getAnnotations
- Overrides:
getAnnotationsin classBinding
-