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
-
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
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, 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_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 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[]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, setPackageNamesMethods inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Binding
computeUniqueKey, getAnnotations, getAnnotationTagBits, initializeDeprecatedAnnotationTagBits, isAnnotationType, isParameter, isPatternVariable, isTaggedRepeatable, isValid, isValidBinding, isVolatile, problemId, setAnnotations, shortReadableName
-
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
-
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
-