Class ModuleBinding.UnNamedModule
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.ModuleBinding.UnNamedModule
- All Implemented Interfaces:
IUpdatableModule
- Enclosing class:
ModuleBinding
-
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
Fields 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 TypeMethodDescriptionbooleancanAccess(PackageBinding pkg) Check if the given package is accessible by this module.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 dependenciesbooleanisPackageExportedTo(PackageBinding pkg, ModuleBinding client) Check if the specified package is owned by the current module and exported to the client module.booleanchar[]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) toString()Methods inherited from class ModuleBinding
addExports, addReads, addResolvedExport, addResolvedOpens, computeUniqueKey, dependencyCollector, dependencyGraphCollector, getDefaultNullness, getExportRestrictions, getExports, getImplementations, getOpenRestrictions, getOpens, getOrCreateDeclaredPackage, getPackageNamesForClassFile, getRequires, getRequiresTransitive, getServices, getTopLevelPackage, getUses, getVisiblePackage, hasUnstableAutoName, isAutomatic, isDeprecated, isOpen, isTransitivelyRequired, kind, name, recordExportRestrictions, recordOpensRestrictions, retrieveAnnotationHolder, setAnnotations, setMainClassName, setPackageNamesModifier 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) char[]computeUniqueKey(boolean isLeaf) intString[]getImplementations(TypeBinding binding) String[]getOpens()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.getUses()getVisiblePackage(char[][] qualifiedPackageName) Answer the package of the given qualified name and visible in this module, ornullif no such package exists.booleanbooleanbooleanbooleanisOpen()booleanisTransitivelyRequired(ModuleBinding otherModule) intkind()char[]name()Answer the name of this module.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.Methods inherited from class Binding
computeUniqueKey, getAnnotations, 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[]
-
Method Details
-
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
-
reads
- Overrides:
readsin classModuleBinding
-
canAccess
Description copied from class:ModuleBindingCheck if the given package is accessible by this module. True when the package is declared in this module or exported by some required module to this module. SeeModuleBinding.isPackageExportedTo(PackageBinding, ModuleBinding)- Overrides:
canAccessin classModuleBinding- Parameters:
pkg-- Returns:
- True, if the package is accessible by this module, false otherwise
-
isPackageExportedTo
Description copied from class:ModuleBindingCheck if the specified package is owned by the current module and exported to the client module. True if the package appears in the list of exported packages and when the export is targeted, the module appears in the targets of the exports statement.- Overrides:
isPackageExportedToin classModuleBinding- Parameters:
pkg- - the package whose visibility is to be checkedclient- - the module that wishes to use the package- Returns:
- true if the package is visible to the client module, false otherwise
-
isUnnamed
public boolean isUnnamed()- Overrides:
isUnnamedin classModuleBinding
-
nameForLookup
public char[] nameForLookup()Description copied from class:ModuleBindingAnswer the name of this module as it should be used for package or type lookup. Unnamed and automatic modules answerModuleBinding.ANYorModuleBinding.ANY_NAMEDresp., to signal that lookup should search in all accessible (named) modules.- Overrides:
nameForLookupin classModuleBinding
-
nameForCUCheck
public char[] nameForCUCheck()Description copied from class:ModuleBindingAnswer the name of this module as it should be used for hasCompilationUnit() checks.- Overrides:
nameForCUCheckin classModuleBinding
-
readableName
public char[] readableName()- Overrides:
readableNamein classModuleBinding
-
toString
- Overrides:
toStringin classModuleBinding
-