Table of Contents

Class JNetHelper

Namespace
MASES.JNet.Specific
Assembly
MASES.JNet.dll

Helper class of JNet for some specific operations

public sealed class JNetHelper : JVMBridgeBase<JNetHelper>, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBase>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JNetHelper
Implements
Inherited Members
Extension Methods

Constructors

JNetHelper()

public JNetHelper()

JNetHelper(IJVMBridgeBaseInitializer)

Initializer used internally

public JNetHelper(IJVMBridgeBaseInitializer initializer)

Parameters

initializer IJVMBridgeBaseInitializer

An instance of IJVMBridgeBaseInitializer

Remarks

Shall be available in any class inherited from JVMBridgeBase

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

true if the BridgeClassName is an abstract class, i.e. cannot be created an instance

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

true if the BridgeClassName implements Closeable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

true if the BridgeClassName is an interface, i.e. does not have any public constructor

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

true if the BridgeClassName is a static class, i.e. does not have any public constructor

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

Class<TClass>()

Retrieve the BridgeClassName of TClass

public static Class<TClass> Class<TClass>() where TClass : IJVMBridgeBase

Returns

Class<TClass>

The BridgeClassName

Type Parameters

TClass

A type implementing IJVMBridgeBase

ListFrom(ByteBuffer)

public static List<Byte> ListFrom(ByteBuffer arg0)

Parameters

arg0 ByteBuffer

ByteBuffer to be used

Returns

List<Byte>

A List can be used as input of ArrayList<E>

ListFrom(CharBuffer)

public static List<Character> ListFrom(CharBuffer arg0)

Parameters

arg0 CharBuffer

CharBuffer to be used

Returns

List<Character>

A List can be used as input of ArrayList<E>

ListFrom(DoubleBuffer)

public static List<Double> ListFrom(DoubleBuffer arg0)

Parameters

arg0 DoubleBuffer

DoubleBuffer to be used

Returns

List<Double>

A List can be used as input of ArrayList<E>

ListFrom(FloatBuffer)

public static List<Float> ListFrom(FloatBuffer arg0)

Parameters

arg0 FloatBuffer

FloatBuffer to be used

Returns

List<Float>

A List can be used as input of ArrayList<E>

ListFrom(IntBuffer)

public static List<Integer> ListFrom(IntBuffer arg0)

Parameters

arg0 IntBuffer

IntBuffer to be used

Returns

List<Integer>

A List can be used as input of ArrayList<E>

ListFrom(LongBuffer)

public static List<Long> ListFrom(LongBuffer arg0)

Parameters

arg0 LongBuffer

LongBuffer to be used

Returns

List<Long>

A List can be used as input of ArrayList<E>

ListFrom(ShortBuffer)

public static List<Short> ListFrom(ShortBuffer arg0)

Parameters

arg0 ShortBuffer

ShortBuffer to be used

Returns

List<Short>

A List can be used as input of ArrayList<E>

ListFrom<T>(T[], bool)

public static List ListFrom<T>(T[] data, bool buffered = false)

Parameters

data T[]

Array of primitive types

buffered bool

Set to true to use ByteBuffer, IntBuffer, DoubleBuffer and so on to transfer data to JVM

Returns

List

A List can be used as input of ArrayList<E>

Type Parameters

T