|
Qwylt | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.module.ResourceSpace
java.lang.module.ClassSpace
java.lang.module.Module
public abstract class Module
This ClassSpace represents a fully initialized module that can load classes
and resources.
| Constructor Summary | |
|---|---|
Module()
|
|
| Method Summary | ||
|---|---|---|
|
getAnnotation(java.lang.Class<T> annotationClass)
Returns this element's annotation for the specified type if such an annotation is present, else null. |
|
java.lang.annotation.Annotation[] |
getAnnotations()
Returns all annotations present on this element. |
|
abstract ModuleArchive |
getArchive()
Returns the archive from which this instance
was created. |
|
abstract java.lang.ClassLoader |
getClassLoader()
Returns the ClassLoader of this instance. |
|
java.util.List<? extends ModuleArchive> |
getCompositeMembers()
Returns the ModuleArchive instances from which this
instance was composed, or null if not a composite. |
|
java.lang.annotation.Annotation[] |
getDeclaredAnnotations()
Returns all annotations that are directly present on this element. |
|
ModuleIdentity |
getIdentity()
Returns the identity of this module. |
|
ModuleSystem |
getModuleSystem()
Returns the ModuleSystem of this instance. |
|
java.lang.String |
getName()
Returns the name of this module. |
|
ModuleRepository |
getRepository()
Returns the repository from which this
instance was created. |
|
static Module |
getRootModule()
Returns the root Module, which is the sole
exporter of packages with the "java." prefix. |
|
abstract ServiceSpace |
getServiceSpace()
Returns the ServiceSpace for this instance. |
|
Version |
getVersion()
Returns the version of this module. |
|
boolean |
hasModuleAccess(Module module)
Returns true iff the specified module has module
(a.k.a. |
|
boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
Returns true if an annotation for the specified type is present on this element, else false. |
|
boolean |
isComposite()
Returns whether or not this instance was composed from multiple ModuleArchive instances. |
|
java.lang.String |
toString()
Returns a string representation of this instance. |
|
| Methods inherited from class java.lang.module.ClassSpace |
|---|
getPackageName, getPackageProvider, getServiceProviders, loadClass, loadLocalClass |
| Methods inherited from class java.lang.module.ResourceSpace |
|---|
equals, getExportedPackages, getImportedPackages, getResource, getResourceData, getResourcePackageName, getResources, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Module()
| Method Detail |
|---|
public static Module getRootModule()
Module, which is the sole
exporter of packages with the "java." prefix.
Module.public java.lang.String getName()
getName in class ResourceSpacepublic Version getVersion()
getVersion in class ResourceSpacepublic ModuleIdentity getIdentity()
ModuleIdentity.public ModuleRepository getRepository()
repository from which this
instance was created.
public abstract ModuleArchive getArchive()
archive from which this instance
was created.
public ModuleSystem getModuleSystem()
ModuleSystem of this instance.
ModuleSystem.public boolean hasModuleAccess(Module module)
true iff the specified module has module
(a.k.a. "module-private") access to members of this module.
module - The module.
true if the specified module has module-private access
to this instance; otherwise, returns false.public boolean isComposite()
ModuleArchive instances.
true if this instance was composed from multiple
ModuleArchive instances.public java.util.List<? extends ModuleArchive> getCompositeMembers()
ModuleArchive instances from which this
instance was composed, or null if not a composite.
ModuleArchive instances from which this
instance was composed, or null if not a composite..public abstract ServiceSpace getServiceSpace()
ServiceSpace for this instance.
null if none.public abstract java.lang.ClassLoader getClassLoader()
ClassLoader of this instance.
public java.lang.String toString()
toString in class ResourceSpacepublic boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
isAnnotationPresent in interface java.lang.reflect.AnnotatedElementannotationClass - the Class object corresponding to the
annotation type
java.lang.NullPointerException - if the given annotation class is nullpublic <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
getAnnotation in interface java.lang.reflect.AnnotatedElementannotationClass - the Class object corresponding to the
annotation type
java.lang.NullPointerException - if the given annotation class is nullpublic java.lang.annotation.Annotation[] getAnnotations()
getAnnotations in interface java.lang.reflect.AnnotatedElementpublic java.lang.annotation.Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations in interface java.lang.reflect.AnnotatedElement
|
Qwylt | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||