Table of Contents

Class Module

Namespace
Java.Lang
Assembly
MASES.JNetReflector.dll
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

initializer IJVMBridgeBaseInitializer

An 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

Annotation[]

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

ClassLoader

Returns the ClassLoader for this module.

public ClassLoader ClassLoader { get; }

Property Value

ClassLoader

DeclaredAnnotations

Returns annotations that are directly present on this element.

public Annotation[] DeclaredAnnotations { get; }

Property Value

Annotation[]

IsNamed

Returns true if this module is a named module.

public bool IsNamed { get; }

Property Value

bool

Name

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

public string Name { get; }

Property Value

string

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

pn string
other Module

Returns

Module

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

pn string
other Module

Returns

Module

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

other Module

Returns

Module

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

service Class

Returns

Module

CanRead(Module)

Indicates if this module reads the given module.

public bool CanRead(Module other)

Parameters

other Module

Returns

bool

CanUse(Class)

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

public bool CanUse(Class service)

Parameters

service Class

Returns

bool

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

annotationClass Class<T>

Returns

T

Type Parameters

T

IsExported(string)

Returns true if this module exports the given package unconditionally.

public bool IsExported(string pn)

Parameters

pn string

Returns

bool

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

pn string
other Module

Returns

bool

IsOpen(string)

Returns true if this module has opened a package unconditionally.

public bool IsOpen(string pn)

Parameters

pn string

Returns

bool

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)

Parameters

pn string
other Module

Returns

bool