All Implemented Interfaces:
AnnotatedElement

  • Method Summary

    If the caller's module is this module then update this module to export the given package to the given module.

    If this module has opened the given package to at least the caller module, then update this module to also open the package to the given module.

    If the caller's module is this module then update this module to read the given module.

    If the caller's module is this module then update this module to add a service dependence on the given service type.

    boolean

    Indicates if this module reads the given module.

    boolean

    Indicates if this module has a service dependence on the given service type.

    getAnnotation(Class<T> annotationClass)

    Returns this element's annotation for the specified type if such an annotation is present, else null.

    Returns annotations that are present on this element.

    Returns the ClassLoader for this module.

    Returns annotations that are directly present on this element.

    Returns the module descriptor for this module or null if this module is an unnamed module.

    getLayer()

    Returns the module layer that contains this module or null if this module is not in a module layer.

    getName()

    Returns the module name or null if this module is an unnamed module.

    Returns the set of package names for the packages in this module.

    Returns an input stream for reading a resource in this module.

    boolean

    Returns true if this module exports the given package unconditionally.

    boolean

    Returns true if this module exports the given package to at least the given module.

    boolean

    isNamed()

    Returns true if this module is a named module.

    boolean

    Returns true if this module can access restricted methods.

    boolean

    Returns true if this module has opened a package unconditionally.

    boolean

    Returns true if this module has opened a package to at least the given module.

    toString()

    Returns the string representation of this module.

    Methods declared in class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Creates and returns a copy of this object.

    boolean

    Indicates whether some other object is "equal to" this one.

    protected void

    Deprecated, for removal: This API element is subject to removal in a future version.

    Returns the runtime class of this Object.

    int

    Returns a hash code value for this object.

    final void

    Wakes up a single thread that is waiting on this object's monitor.

    final void

    Wakes up all threads that are waiting on this object's monitor.

    final void

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

    final void

    wait(long timeoutMillis)

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

    final void

    wait(long timeoutMillis, int nanos)

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

    Methods declared in interface AnnotatedElement

    getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType, isAnnotationPresent

    Returns annotations that are associated with this element.

    Returns this element's annotation for the specified type if such an annotation is directly present, else null.

    Returns this element's annotation(s) for the specified type if such annotations are either directly present or indirectly present.

    default boolean

    Returns true if an annotation for the specified type is present on this element, else false.

  • Method Details

    • isNamed

    • getName

    • getClassLoader

    • getDescriptor

    • getLayer

    • isNativeAccessEnabled

    • canRead

    • addReads

    • isExported

    • isOpen

    • isExported

    • isOpen

    • addExports

    • addOpens

    • addUses

    • canUse

    • getPackages

    • getAnnotation

    • getAnnotations

    • getDeclaredAnnotations

    • getResourceAsStream

    • toString