public class SourceModuleBinding extends ModuleBinding
ModuleBinding.UnNamedModuleIUpdatableModule.AddExports, IUpdatableModule.AddReads, IUpdatableModule.UpdateKind, IUpdatableModule.UpdatesByKind| Modifier and Type | Field and Description |
|---|---|
CompilationUnitScope |
scope |
ALL_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| Constructor and Description |
|---|
SourceModuleBinding(char[] moduleName,
CompilationUnitScope scope,
LookupEnvironment rootEnv)
Construct a named module from source.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
ensureAnnotationsResolved() |
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
|
AnnotationBinding[] |
getAnnotations() |
long |
getAnnotationTagBits()
Compute the tagbits for standard annotations.
|
PlainPackageBinding[] |
getExports() |
TypeBinding[] |
getImplementations(TypeBinding binding) |
PlainPackageBinding[] |
getOpens() |
TypeBinding[] |
getServices() |
TypeBinding[] |
getUses() |
void |
setImplementations(TypeBinding infBinding,
java.util.Collection<TypeBinding> resolvedImplementations) |
void |
setRequires(ModuleBinding[] requires,
ModuleBinding[] requiresTransitive) |
void |
setServices(TypeBinding[] services) |
void |
setUses(TypeBinding[] uses) |
addExports, addReads, addResolvedExport, addResolvedOpens, canAccess, computeUniqueKey, dependencyCollector, dependencyGraphCollector, getDefaultNullness, getExportRestrictions, getOpenRestrictions, getOrCreateDeclaredPackage, getPackageNamesForClassFile, getRequires, getRequiresTransitive, getTopLevelPackage, getVisiblePackage, hasUnstableAutoName, isDeprecated, isOpen, isPackageExportedTo, isTransitivelyRequired, isUnnamed, kind, name, nameForCUCheck, nameForLookup, readableName, recordExportRestrictions, recordOpensRestrictions, retrieveAnnotationHolder, setAnnotations, setMainClassName, setPackageNames, toStringcomputeUniqueKey, initializeDeprecatedAnnotationTagBits, isAnnotationType, isParameter, isTaggedRepeatable, isValid, isValidBinding, isVolatile, problemId, setAnnotations, shortReadableNamepublic final CompilationUnitScope scope
public SourceModuleBinding(char[] moduleName,
CompilationUnitScope scope,
LookupEnvironment rootEnv)
Side effects: adds the new module to root.knownModules, creates a new LookupEnvironment and links that into the scope.
public void setRequires(ModuleBinding[] requires, ModuleBinding[] requiresTransitive)
public void setUses(TypeBinding[] uses)
public TypeBinding[] getUses()
getUses in class ModuleBindingpublic TypeBinding[] getServices()
getServices in class ModuleBindingpublic TypeBinding[] getImplementations(TypeBinding binding)
getImplementations in class ModuleBindingpublic void setServices(TypeBinding[] services)
public void setImplementations(TypeBinding infBinding, java.util.Collection<TypeBinding> resolvedImplementations)
public ModuleBinding[] getAllRequiredModules()
ModuleBindinggetAllRequiredModules in class ModuleBindingpublic PlainPackageBinding[] getExports()
getExports in class ModuleBindingpublic PlainPackageBinding[] getOpens()
getOpens in class ModuleBindingpublic long getAnnotationTagBits()
BindinggetAnnotationTagBits in class BindingSourceTypeBinding.getAnnotationTagBits()protected void ensureAnnotationsResolved()
public AnnotationBinding[] getAnnotations()
getAnnotations in class Binding