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, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JNetHelper
Implements
Inherited Members
Extension Methods

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, new()

Returns

Class<TClass>

The BridgeClassName

Type Parameters

TClass

A type implementing IJVMBridgeBase

ListFrom(ByteBuffer)

public static List ListFrom(ByteBuffer arg0)

Parameters

arg0 ByteBuffer

ByteBuffer to be used

Returns

List

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

ListFrom(CharBuffer)

public static List ListFrom(CharBuffer arg0)

Parameters

arg0 CharBuffer

CharBuffer to be used

Returns

List

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

ListFrom(DoubleBuffer)

public static List ListFrom(DoubleBuffer arg0)

Parameters

arg0 DoubleBuffer

DoubleBuffer to be used

Returns

List

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

ListFrom(FloatBuffer)

public static List ListFrom(FloatBuffer arg0)

Parameters

arg0 FloatBuffer

FloatBuffer to be used

Returns

List

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

ListFrom(IntBuffer)

public static List ListFrom(IntBuffer arg0)

Parameters

arg0 IntBuffer

IntBuffer to be used

Returns

List

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

ListFrom(LongBuffer)

public static List ListFrom(LongBuffer arg0)

Parameters

arg0 LongBuffer

LongBuffer to be used

Returns

List

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

ListFrom(ShortBuffer)

public static List ListFrom(ShortBuffer arg0)

Parameters

arg0 ShortBuffer

ShortBuffer to be used

Returns

List

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