Table of Contents

Class Instrumentation

Namespace
Java.Lang.Instrument
Assembly
MASES.JNet.dll
public class Instrumentation : JVMBridgeBase<Instrumentation>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IInstrumentation
Inheritance
JVMBridgeBase
JVMBridgeBase<Instrumentation>
Instrumentation
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<Instrumentation>.IsAssignableFrom(IJavaType)
JVMBridgeBase<Instrumentation>.IsAssignableFrom<T>()
JVMBridgeBase<Instrumentation>.Execute<T>(params T[])
JVMBridgeBase<Instrumentation>.DynBridgeClazz
JVMBridgeBase<Instrumentation>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener
Extension Methods

Constructors

Instrumentation()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

[Obsolete("Instrumentation class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public Instrumentation()

Instrumentation(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

[Obsolete("Instrumentation class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public Instrumentation(params object[] args)

Parameters

args object[]

Properties

AllLoadedClasses

public Class[] AllLoadedClasses { get; }

Property Value

Class[]

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

AddTransformer(ClassFileTransformer)

public void AddTransformer(ClassFileTransformer arg0)

Parameters

arg0 ClassFileTransformer

ClassFileTransformer

AddTransformer(ClassFileTransformer, bool)

public void AddTransformer(ClassFileTransformer arg0, bool arg1)

Parameters

arg0 ClassFileTransformer

ClassFileTransformer

arg1 bool

bool

AppendToBootstrapClassLoaderSearch(JarFile)

public void AppendToBootstrapClassLoaderSearch(JarFile arg0)

Parameters

arg0 JarFile

JarFile

AppendToSystemClassLoaderSearch(JarFile)

public void AppendToSystemClassLoaderSearch(JarFile arg0)

Parameters

arg0 JarFile

JarFile

GetInitiatedClasses(ClassLoader)

public Class[] GetInitiatedClasses(ClassLoader arg0)

Parameters

arg0 ClassLoader

ClassLoader

Returns

Class[]

Class

GetObjectSize(object)

public long GetObjectSize(object arg0)

Parameters

arg0 object

object

Returns

long

long

IsModifiableClass(Class)

public bool IsModifiableClass(Class arg0)

Parameters

arg0 Class

Class

Returns

bool

bool

IsModifiableModule(Module)

public bool IsModifiableModule(Module arg0)

Parameters

arg0 Module

Module

Returns

bool

bool

IsNativeMethodPrefixSupported()

public bool IsNativeMethodPrefixSupported()

Returns

bool

bool

IsRedefineClassesSupported()

public bool IsRedefineClassesSupported()

Returns

bool

bool

IsRetransformClassesSupported()

public bool IsRetransformClassesSupported()

Returns

bool

bool

RedefineClasses(params ClassDefinition[])

public void RedefineClasses(params ClassDefinition[] arg0)

Parameters

arg0 ClassDefinition[]

ClassDefinition

Exceptions

ClassNotFoundException
UnmodifiableClassException

RedefineModule(Module, Set<Module>, Map<String, Set<Module>>, Map<String, Set<Module>>, Set<Class>, Map<Class, List<Class>>)

public void RedefineModule(Module arg0, Set<Module> arg1, Map<String, Set<Module>> arg2, Map<String, Set<Module>> arg3, Set<Class> arg4, Map<Class, List<Class>> arg5)

Parameters

arg0 Module

Module

arg1 Set<Module>

Set

arg2 Map<String, Set<Module>>

Map

arg3 Map<String, Set<Module>>

Map

arg4 Set<Class>

Set

arg5 Map<Class, List<Class>>

Map

RemoveTransformer(ClassFileTransformer)

public bool RemoveTransformer(ClassFileTransformer arg0)

Parameters

arg0 ClassFileTransformer

ClassFileTransformer

Returns

bool

bool

RetransformClasses(params Class[])

public void RetransformClasses(params Class[] arg0)

Parameters

arg0 Class[]

Class

Exceptions

UnmodifiableClassException

SetNativeMethodPrefix(ClassFileTransformer, String)

public void SetNativeMethodPrefix(ClassFileTransformer arg0, String arg1)

Parameters

arg0 ClassFileTransformer

ClassFileTransformer

arg1 String

String