public static class ModuleBinding.UnNamedModule extends ModuleBinding
ModuleBinding.UnNamedModuleIUpdatableModule.AddExports, IUpdatableModule.AddReads, IUpdatableModule.UpdateKind, IUpdatableModule.UpdatesByKindALL_UNNAMED, ANY, ANY_NAMED, declaredPackages, defaultNullness, environment, exportedPackages, implementations, mainClassName, modifiers, moduleName, openedPackages, requires, requiresTransitive, services, tagBits, UNNAMED, UNOBSERVABLE, usesANY_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_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_PLAIN_PACKAGES, NO_REFERENCE_TYPES, NO_SUPERINTERFACES, NO_TYPE_VARIABLES, NO_TYPES, NULL_UNSPECIFIED_BY_DEFAULT, NullnessDefaultMASK, PACKAGE, PARAMETERIZED_TYPE, POLY_TYPE, RAW_TYPE, TYPE, TYPE_PARAMETER, TYPE_USE, UNINITIALIZED_FIELDS, UNINITIALIZED_METHODS, UNINITIALIZED_REFERENCE_TYPES, VARIABLE, WILDCARD_TYPE| Modifier and Type | Method and Description |
|---|---|
boolean |
canAccess(PackageBinding pkg)
Check if the given package is accessible by this module.
|
ModuleBinding[] |
getAllRequiredModules()
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
|
boolean |
isPackageExportedTo(PackageBinding pkg,
ModuleBinding client)
Check if the specified package is owned by the current module and exported to the client module.
|
boolean |
isUnnamed() |
char[] |
nameForCUCheck()
Answer the name of this module as it should be used for hasCompilationUnit() checks.
|
char[] |
nameForLookup()
Answer the name of this module as it should be used for package or type lookup.
|
char[] |
readableName() |
java.lang.String |
toString() |
addExports, addReads, addResolvedExport, addResolvedOpens, computeUniqueKey, dependencyCollector, dependencyGraphCollector, getDefaultNullness, getExportRestrictions, getExports, getImplementations, getOpenRestrictions, getOpens, getOrCreateDeclaredPackage, getPackageNamesForClassFile, getRequires, getRequiresTransitive, getServices, getTopLevelPackage, getUses, getVisiblePackage, hasUnstableAutoName, isDeprecated, isOpen, isTransitivelyRequired, kind, name, recordExportRestrictions, recordOpensRestrictions, retrieveAnnotationHolder, setAnnotations, setMainClassName, setPackageNamescomputeUniqueKey, getAnnotations, getAnnotationTagBits, initializeDeprecatedAnnotationTagBits, isAnnotationType, isParameter, isTaggedRepeatable, isValid, isValidBinding, isVolatile, problemId, setAnnotations, shortReadableNamepublic ModuleBinding[] getAllRequiredModules()
ModuleBindinggetAllRequiredModules in class ModuleBindingpublic boolean canAccess(PackageBinding pkg)
ModuleBindingModuleBinding.isPackageExportedTo(PackageBinding, ModuleBinding)canAccess in class ModuleBindingpublic boolean isPackageExportedTo(PackageBinding pkg, ModuleBinding client)
ModuleBindingisPackageExportedTo in class ModuleBindingpkg - - the package whose visibility is to be checkedclient - - the module that wishes to use the packagepublic boolean isUnnamed()
isUnnamed in class ModuleBindingpublic char[] nameForLookup()
ModuleBindingModuleBinding.ANY or ModuleBinding.ANY_NAMED resp.,
to signal that lookup should search in all accessible (named) modules.nameForLookup in class ModuleBindingpublic char[] nameForCUCheck()
ModuleBindingnameForCUCheck in class ModuleBindingpublic char[] readableName()
readableName in class ModuleBindingpublic java.lang.String toString()
toString in class ModuleBinding