Class Module
.NET implementations of https://docs.oracle.com/javase/8/docs/api/java/lang/Module.html
public sealed class Module : JVMBridgeBase<Module>, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBase>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
Module
- Implements
- Inherited Members
Constructors
Module()
public Module()
Module(IJVMBridgeBaseInitializer)
Initializer used internally
public Module(IJVMBridgeBaseInitializer initializer)
Parameters
initializerIJVMBridgeBaseInitializerAn instance of IJVMBridgeBaseInitializer
Remarks
Shall be available in any class inherited from JVMBridgeBase
Properties
Annotations
Returns annotations that are present on this element.
public Annotation[] Annotations { get; }
Property Value
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
ClassLoader
Returns the ClassLoader for this module.
public ClassLoader ClassLoader { get; }
Property Value
DeclaredAnnotations
Returns annotations that are directly present on this element.
public Annotation[] DeclaredAnnotations { get; }
Property Value
IsNamed
Returns true if this module is a named module.
public bool IsNamed { get; }
Property Value
Name
Returns the module name or null if this module is an unnamed module.
public string Name { get; }
Property Value
Methods
AddExports(string, Module)
If the caller's module is this module then update this module to export the given package to the given module.
public Module AddExports(string pn, Module other)
Parameters
Returns
AddOpens(string, Module)
If this module has opened a package to at least the caller module then update this module to open the package to the given module.
public Module AddOpens(string pn, Module other)
Parameters
Returns
AddReads(Module)
If the caller's module is this module then update this module to read the given module.
public Module AddReads(Module other)
Parameters
otherModule
Returns
AddUses(Class)
If the caller's module is this module then update this module to add a service dependence on the given service type.
public Module AddUses(Class service)
Parameters
serviceClass
Returns
CanRead(Module)
Indicates if this module reads the given module.
public bool CanRead(Module other)
Parameters
otherModule
Returns
CanUse(Class)
Indicates if this module has a service dependence on the given service type.
public bool CanUse(Class service)
Parameters
serviceClass
Returns
GetAnnotation<T>(Class<T>)
Returns this element's annotation for the specified type if such an annotation is present, else null.
public T GetAnnotation<T>(Class<T> annotationClass) where T : Annotation
Parameters
annotationClassClass<T>
Returns
- T
Type Parameters
T
IsExported(string)
Returns true if this module exports the given package unconditionally.
public bool IsExported(string pn)
Parameters
pnstring
Returns
IsExported(string, Module)
Returns true if this module exports the given package to at least the given module.
public bool IsExported(string pn, Module other)
Parameters
Returns
IsOpen(string)
Returns true if this module has opened a package unconditionally.
public bool IsOpen(string pn)
Parameters
pnstring
Returns
IsOpen(string, Module)
Returns true if this module has opened a package to at least the given module.
public bool IsOpen(string pn, Module other)