jdk/src/jdk.jdi/share/classes/com/sun/jdi/ModuleReference.java
changeset 42338 a60f280f803c
parent 36511 9d0388c6b336
child 45564 0149773a140c
equal deleted inserted replaced
42148:7a4a59859ac0 42338:a60f280f803c
    28 
    28 
    29 /**
    29 /**
    30  * A module in the target VM.
    30  * A module in the target VM.
    31  * <p>
    31  * <p>
    32  * Any method on {@code ModuleReference} which directly or
    32  * Any method on {@code ModuleReference} which directly or
    33  * indirectly takes {@code ModuleReference} as an parameter may throw
    33  * indirectly takes {@code ModuleReference} as a parameter may throw
    34  * {@link com.sun.jdi.VMDisconnectedException} if the target VM is
    34  * {@link com.sun.jdi.VMDisconnectedException} if the target VM is
    35  * disconnected and the {@link com.sun.jdi.event.VMDisconnectEvent} has been or is
    35  * disconnected and the {@link com.sun.jdi.event.VMDisconnectEvent} has been or is
    36  * available to be read from the {@link com.sun.jdi.event.EventQueue}.
    36  * available to be read from the {@link com.sun.jdi.event.EventQueue}.
    37  * <p>
    37  * <p>
    38  * Any method on {@code ModuleReference} which directly or
    38  * Any method on {@code ModuleReference} which directly or
    39  * indirectly takes {@code ModuleReference} as an parameter may throw
    39  * indirectly takes {@code ModuleReference} as a parameter may throw
    40  * {@link com.sun.jdi.VMOutOfMemoryException} if the target VM has run out of memory.
    40  * {@link com.sun.jdi.VMOutOfMemoryException} if the target VM has run out of memory.
    41  * <p>
    41  * <p>
    42  * Any method on {@code ModuleReference} or which directly or indirectly takes
    42  * Any method on {@code ModuleReference} or which directly or indirectly takes
    43  * {@code ModuleReference} as parameter may throw
    43  * {@code ModuleReference} as a parameter may throw
    44  * {@link com.sun.jdi.InvalidModuleException} if the mirrored module
    44  * {@link com.sun.jdi.InvalidModuleException} if the mirrored module
    45  * has been unloaded.
    45  * has been unloaded.
    46  *
    46  *
    47  * Not all target virtual machines support this class.
    47  * Not all target virtual machines support this class.
    48  * Use {@link VirtualMachine#canGetModuleInfo()}
    48  * Use {@link VirtualMachine#canGetModuleInfo()}
    65      * Returns the {@link ClassLoaderReference} object for this module.
    65      * Returns the {@link ClassLoaderReference} object for this module.
    66      *
    66      *
    67      * @return the {@link ClassLoaderReference} object for this module.
    67      * @return the {@link ClassLoaderReference} object for this module.
    68      */
    68      */
    69     ClassLoaderReference classLoader();
    69     ClassLoaderReference classLoader();
    70 
       
    71     /**
       
    72      * Indicates if this module reads another module.
       
    73      *
       
    74      * @return {@code true} if this module reads {@code other},
       
    75      *         {@code false} otherwise
       
    76      */
       
    77     boolean canRead(ModuleReference other);
       
    78 }
    70 }