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 org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ModuleBinding
ModuleBinding.UnNamedModule
Nested classes/interfaces inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.env.IUpdatableModule
IUpdatableModule.AddExports, IUpdatableModule.AddReads, IUpdatableModule.UpdateKind, IUpdatableModule.UpdatesByKind
-
Field Summary
Fields 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, uses
Fields 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_PERMITTEDTYPES, 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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canAccess(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 dependenciesboolean
isPackageExportedTo(PackageBinding pkg, ModuleBinding client)
Check if the specified package is owned by the current module and exported to the client module.boolean
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[]
toString()
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.lookup.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, setPackageNames
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Binding
computeUniqueKey, getAnnotations, getAnnotationTagBits, initializeDeprecatedAnnotationTagBits, isAnnotationType, isParameter, isTaggedRepeatable, isValid, isValidBinding, isVolatile, problemId, setAnnotations, shortReadableName
-
Method Details
-
getAllRequiredModules
Description copied from class:ModuleBinding
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 dependencies- Overrides:
getAllRequiredModules
in classModuleBinding
- Returns:
- An array of all required modules
-
canAccess
Description copied from class:ModuleBinding
Check 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:
canAccess
in classModuleBinding
- Returns:
- True, if the package is accessible by this module, false otherwise
-
isPackageExportedTo
Description copied from class:ModuleBinding
Check 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:
isPackageExportedTo
in 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:
isUnnamed
in classModuleBinding
-
nameForLookup
public char[] nameForLookup()Description copied from class:ModuleBinding
Answer the name of this module as it should be used for package or type lookup. Unnamed and automatic modules answerModuleBinding.ANY
orModuleBinding.ANY_NAMED
resp., to signal that lookup should search in all accessible (named) modules.- Overrides:
nameForLookup
in classModuleBinding
-
nameForCUCheck
public char[] nameForCUCheck()Description copied from class:ModuleBinding
Answer the name of this module as it should be used for hasCompilationUnit() checks.- Overrides:
nameForCUCheck
in classModuleBinding
-
readableName
public char[] readableName()- Overrides:
readableName
in classModuleBinding
-
toString
- Overrides:
toString
in classModuleBinding
-