public class RuntimeHelpers extends NetObject
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Runtime.CompilerServices.RuntimeHelpers
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
|
static java.lang.String |
assemblyShortName
Assembly name: System.Private.CoreLib
|
static java.lang.String |
className
Qualified class name: System.Runtime.CompilerServices.RuntimeHelpers
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
RuntimeHelpers() |
RuntimeHelpers(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static NetObject |
Box(JCORefOut<java.util.concurrent.atomic.AtomicReference<java.lang.Byte>> target,
RuntimeTypeHandle type)
Invokes the .NET member Box.
|
static RuntimeHelpers |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into RuntimeHelpers, a cast assert is made to check if types are compatible. |
static void |
EnsureSufficientExecutionStack()
Invokes the .NET member EnsureSufficientExecutionStack.
|
static boolean |
Equals(NetObject o1,
NetObject o2)
Invokes the .NET member Equals.
|
static int |
GetHashCode(NetObject o)
Invokes the .NET member GetHashCode.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
static NetObject |
GetObjectValue(NetObject obj)
Invokes the .NET member GetObjectValue.
|
static int |
getOffsetToStringData()
Gets the value of the .NET property OffsetToStringData.
|
static NetObject |
GetUninitializedObject(NetType type)
Invokes the .NET member GetUninitializedObject.
|
static void |
InitializeArray(Array array,
RuntimeFieldHandle fldHandle)
Invokes the .NET member InitializeArray.
|
static <T extends IJCOBridgeReflected> |
IsReferenceOrContainsReferences()
Invokes the .NET member IsReferenceOrContainsReferences.
|
static void |
PrepareConstrainedRegions()
Invokes the .NET member PrepareConstrainedRegions.
|
static void |
PrepareConstrainedRegionsNoOP()
Invokes the .NET member PrepareConstrainedRegionsNoOP.
|
static void |
PrepareMethod(RuntimeMethodHandle method)
Invokes the .NET member PrepareMethod.
|
static void |
PrepareMethod(RuntimeMethodHandle method,
RuntimeTypeHandle[] instantiation)
Invokes the .NET member PrepareMethod.
|
static void |
ProbeForSufficientStack()
Invokes the .NET member ProbeForSufficientStack.
|
static void |
RunClassConstructor(RuntimeTypeHandle type)
Invokes the .NET member RunClassConstructor.
|
static void |
RunModuleConstructor(ModuleHandle module)
Invokes the .NET member RunModuleConstructor.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
static int |
SizeOf(RuntimeTypeHandle type)
Invokes the .NET member SizeOf.
|
static boolean |
TryEnsureSufficientExecutionStack()
Invokes the .NET member TryEnsureSufficientExecutionStack.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public RuntimeHelpers()
throws java.lang.Throwable
java.lang.Throwablepublic RuntimeHelpers(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic static NetObject Box(JCORefOut<java.util.concurrent.atomic.AtomicReference<java.lang.Byte>> target, RuntimeTypeHandle type) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, NullReferenceException
target - the argument of type JCORefOut<java.util.concurrent.atomic.AtomicReference<java.lang.Byte>>type - the argument of type RuntimeTypeHandlejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itNullReferenceException - if the .NET member raises itpublic static RuntimeHelpers cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into RuntimeHelpers, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedRuntimeHelpers instancejava.lang.Throwable - in case of error during cast operationpublic static void EnsureSufficientExecutionStack()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static boolean Equals(NetObject o1, NetObject o2) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException
o1 - the argument of type NetObjecto2 - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic static int GetHashCode(NetObject o) throws java.lang.Throwable
o - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectpublic static NetObject GetObjectValue(NetObject obj) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException
obj - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic static int getOffsetToStringData()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static NetObject GetUninitializedObject(NetType type) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, SerializationException, NullReferenceException
type - the argument of type NetTypejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itSerializationException - if the .NET member raises itNullReferenceException - if the .NET member raises itpublic static void InitializeArray(Array array, RuntimeFieldHandle fldHandle) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException
array - the argument of type ArrayfldHandle - the argument of type RuntimeFieldHandlejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic static <T extends IJCOBridgeReflected> boolean IsReferenceOrContainsReferences() throws java.lang.Throwable
T - the type of the generic argument Tjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static void PrepareConstrainedRegions()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static void PrepareConstrainedRegionsNoOP()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static void PrepareMethod(RuntimeMethodHandle method) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException
method - the argument of type RuntimeMethodHandlejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic static void PrepareMethod(RuntimeMethodHandle method, RuntimeTypeHandle[] instantiation) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
method - the argument of type RuntimeMethodHandleinstantiation - the argument of type RuntimeTypeHandle[]java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic static void ProbeForSufficientStack()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static void RunClassConstructor(RuntimeTypeHandle type) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
type - the argument of type RuntimeTypeHandlejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic static void RunModuleConstructor(ModuleHandle module) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
module - the argument of type ModuleHandlejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying objectpublic static int SizeOf(RuntimeTypeHandle type) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException
type - the argument of type RuntimeTypeHandlejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic static boolean TryEnsureSufficientExecutionStack()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLR