JuggerNET Runtime Library v3.6.54.0  3.6.54.0
Public Member Functions | Static Public Member Functions | Properties | List of all members
Codemesh.JuggerNET.JavaClass Class Reference

The framework type wrapping around a Java type. More...

Collaboration diagram for Codemesh.JuggerNET.JavaClass:
Collaboration graph
[legend]

Public Member Functions

 JavaClass (string name, Type exactProxyType)
 
bool IsTypeOf (JavaProxy proxy)
 

Static Public Member Functions

static JavaClass RegisterClass (string className, Type classType)
 Returns the object that maintains the per-class information for a Java proxy type. More...
 
static JavaClass RegisterClass (string className, Type classType, Type cbType)
 Returns the object that maintains the per-class information for an instantiable Java proxy type that has callbacks. More...
 
static JavaClass RegisterClass (string ifcName, Type ifcType, Type implType, Type cbType)
 
static void ThrowException (System.Exception ex)
 
static void ThrowTypedException (long inst)
 
static Object GetTypedInstance (Type proxytype, long inst)
 Returns an object of a .NET type that is the most derived available .NET type for the given instance and the given .NET type. The mapping is as follows: More...
 
static Object GetTypedInstance (Type proxytype, long inst, bool bIsLeaf)
 
static long FromTypedInstance (JavaProxyHelper h, Type ifc, object obj)
 
static void ClearCache ()
 A method used to clear out any cached values. We use this method in testing and to potentially allow reinitialization of the framework. More...
 
static string[] GetFriendlyNames (string jname)
 

Properties

byte[] ByteCode [set]
 
string ClassName [get]
 
string FriendlyName [get]
 
bool IsLeafType [get]
 
static string ClassesAnalysis [get]
 
static string MethodsAndFieldsAnalysis [get]
 
ArrayList Methods [get]
 
ArrayList Fields [get]
 
long JObject [get]
 
HandleRef Handle [get]
 

Detailed Description

The framework type wrapping around a Java type.

<exclude>

Member Function Documentation

◆ ClearCache()

static void Codemesh.JuggerNET.JavaClass.ClearCache ( )
inlinestatic

A method used to clear out any cached values. We use this method in testing and to potentially allow reinitialization of the framework.

◆ GetTypedInstance()

static Object Codemesh.JuggerNET.JavaClass.GetTypedInstance ( Type  proxytype,
long  inst 
)
inlinestatic

Returns an object of a .NET type that is the most derived available .NET type for the given instance and the given .NET type. The mapping is as follows:

  • inst == 0 --> null
  • proxytype == string --> string
Parameters
proxytype
inst
Returns

Referenced by Codemesh.JuggerNET.JavaMethod.call_object(), and Codemesh.JuggerNET.JuggerNETProxyArray.GetElement().

◆ RegisterClass() [1/2]

static JavaClass Codemesh.JuggerNET.JavaClass.RegisterClass ( string  className,
Type  classType 
)
inlinestatic

Returns the object that maintains the per-class information for a Java proxy type.

Parameters
classNamethe Java classname.
classTypethe corresponding .NET type.
Returns

◆ RegisterClass() [2/2]

static JavaClass Codemesh.JuggerNET.JavaClass.RegisterClass ( string  className,
Type  classType,
Type  cbType 
)
inlinestatic

Returns the object that maintains the per-class information for an instantiable Java proxy type that has callbacks.

Parameters
className
classType
cbType
Returns

The documentation for this class was generated from the following file:

Copyright (c) 1999-2020 by Codemesh, Inc., ALL RIGHTS RESERVED.