public class DynamicMethod extends MethodInfo
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Reflection.Emit.DynamicMethod
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.Reflection.Emit.DynamicMethod
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
DynamicMethod() |
DynamicMethod(java.lang.Object instance)
Internal constructor.
|
DynamicMethod(java.lang.String name,
MethodAttributes attributes,
CallingConventions callingConvention,
NetType returnType,
NetType[] parameterTypes,
Module m,
boolean skipVisibility) |
DynamicMethod(java.lang.String name,
MethodAttributes attributes,
CallingConventions callingConvention,
NetType returnType,
NetType[] parameterTypes,
NetType owner,
boolean skipVisibility) |
DynamicMethod(java.lang.String name,
NetType returnType,
NetType[] parameterTypes) |
DynamicMethod(java.lang.String name,
NetType returnType,
NetType[] parameterTypes,
boolean restrictedSkipVisibility) |
DynamicMethod(java.lang.String name,
NetType returnType,
NetType[] parameterTypes,
Module m) |
DynamicMethod(java.lang.String name,
NetType returnType,
NetType[] parameterTypes,
Module m,
boolean skipVisibility) |
DynamicMethod(java.lang.String name,
NetType returnType,
NetType[] parameterTypes,
NetType owner) |
DynamicMethod(java.lang.String name,
NetType returnType,
NetType[] parameterTypes,
NetType owner,
boolean skipVisibility) |
| Modifier and Type | Method and Description |
|---|---|
static DynamicMethod |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into DynamicMethod, a cast assert is made to check if types are compatible. |
ParameterBuilder |
DefineParameter(int position,
ParameterAttributes attributes,
java.lang.String parameterName) |
MethodInfo |
GetBaseDefinition() |
NetObject[] |
GetCustomAttributes(boolean inherit) |
NetObject[] |
GetCustomAttributes(NetType attributeType,
boolean inherit) |
DynamicILInfo |
GetDynamicILInfo() |
ILGenerator |
GetILGenerator() |
ILGenerator |
GetILGenerator(int streamSize) |
boolean |
getInitLocals() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
MethodImplAttributes |
GetMethodImplementationFlags() |
ParameterInfo[] |
GetParameters() |
NetObject |
Invoke(NetObject obj,
BindingFlags invokeAttr,
Binder binder,
NetObject[] parameters,
CultureInfo culture) |
boolean |
IsDefined(NetType attributeType,
boolean inherit) |
void |
setInitLocals(boolean InitLocals) |
void |
setJCOInstance(JCObject instance) |
GetGenericArguments, GetGenericMethodDefinition, getReturnParameter, getReturnType, getReturnTypeCustomAttributes, MakeGenericMethodgetAttributes, getCallingConvention, getContainsGenericParameters, GetCurrentMethod, getIsAbstract, getIsAssembly, getIsConstructedGenericMethod, getIsConstructor, getIsFamily, getIsFamilyAndAssembly, getIsFamilyOrAssembly, getIsFinal, getIsGenericMethod, getIsGenericMethodDefinition, getIsHideBySig, getIsPrivate, getIsPublic, getIsSecurityCritical, getIsSecuritySafeCritical, getIsSecurityTransparent, getIsSpecialName, getIsStatic, getIsVirtual, GetMethodBody, GetMethodFromHandle, GetMethodFromHandle, getMethodHandle, getMethodImplementationFlags, InvokegetDeclaringType, getIsCollectible, getMemberType, getMetadataToken, getModule, getName, getReflectedType, HasSameMetadataDefinitionAspublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public DynamicMethod()
throws java.lang.Throwable
java.lang.Throwablepublic DynamicMethod(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic DynamicMethod(java.lang.String name,
MethodAttributes attributes,
CallingConventions callingConvention,
NetType returnType,
NetType[] parameterTypes,
Module m,
boolean skipVisibility)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
IndexOutOfRangeException,
FileLoadException,
OutOfMemoryException,
CultureNotFoundException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionFileLoadExceptionOutOfMemoryExceptionCultureNotFoundExceptionpublic DynamicMethod(java.lang.String name,
MethodAttributes attributes,
CallingConventions callingConvention,
NetType returnType,
NetType[] parameterTypes,
NetType owner,
boolean skipVisibility)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
IndexOutOfRangeException,
FileLoadException,
OutOfMemoryException,
CultureNotFoundException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionFileLoadExceptionOutOfMemoryExceptionCultureNotFoundExceptionpublic DynamicMethod(java.lang.String name,
NetType returnType,
NetType[] parameterTypes)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
PlatformNotSupportedException,
IndexOutOfRangeException,
FileLoadException,
OutOfMemoryException,
CultureNotFoundException
public DynamicMethod(java.lang.String name,
NetType returnType,
NetType[] parameterTypes,
boolean restrictedSkipVisibility)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
PlatformNotSupportedException,
IndexOutOfRangeException,
FileLoadException,
OutOfMemoryException,
CultureNotFoundException
public DynamicMethod(java.lang.String name,
NetType returnType,
NetType[] parameterTypes,
Module m)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
IndexOutOfRangeException,
FileLoadException,
OutOfMemoryException,
CultureNotFoundException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionFileLoadExceptionOutOfMemoryExceptionCultureNotFoundExceptionpublic DynamicMethod(java.lang.String name,
NetType returnType,
NetType[] parameterTypes,
Module m,
boolean skipVisibility)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
IndexOutOfRangeException,
FileLoadException,
OutOfMemoryException,
CultureNotFoundException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionFileLoadExceptionOutOfMemoryExceptionCultureNotFoundExceptionpublic DynamicMethod(java.lang.String name,
NetType returnType,
NetType[] parameterTypes,
NetType owner)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
IndexOutOfRangeException,
FileLoadException,
OutOfMemoryException,
CultureNotFoundException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionFileLoadExceptionOutOfMemoryExceptionCultureNotFoundExceptionpublic DynamicMethod(java.lang.String name,
NetType returnType,
NetType[] parameterTypes,
NetType owner,
boolean skipVisibility)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
IndexOutOfRangeException,
FileLoadException,
OutOfMemoryException,
CultureNotFoundException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionFileLoadExceptionOutOfMemoryExceptionCultureNotFoundExceptionpublic static DynamicMethod cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into DynamicMethod, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedDynamicMethod instancejava.lang.Throwable - in case of error during cast operationpublic ParameterBuilder DefineParameter(int position, ParameterAttributes attributes, java.lang.String parameterName) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
public MethodInfo GetBaseDefinition() throws java.lang.Throwable
GetBaseDefinition in class MethodInfojava.lang.Throwablepublic NetObject[] GetCustomAttributes(boolean inherit) throws java.lang.Throwable
GetCustomAttributes in class MemberInfojava.lang.Throwablepublic NetObject[] GetCustomAttributes(NetType attributeType, boolean inherit) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
GetCustomAttributes in class MemberInfojava.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionpublic DynamicILInfo GetDynamicILInfo() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
public ILGenerator GetILGenerator() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, ArgumentNullException
public ILGenerator GetILGenerator(int streamSize) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
public boolean getInitLocals()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class MethodInfoString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class MethodInfoString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class MethodInfoObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class MethodInfoString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class MethodInfoJCType representing the CLR Type of the instantiated Classpublic MethodImplAttributes GetMethodImplementationFlags() throws java.lang.Throwable
GetMethodImplementationFlags in class MethodBasejava.lang.Throwablepublic ParameterInfo[] GetParameters() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException
GetParameters in class MethodBasejava.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionpublic NetObject Invoke(NetObject obj, BindingFlags invokeAttr, Binder binder, NetObject[] parameters, CultureInfo culture) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException, TargetParameterCountException, OutOfMemoryException, FileLoadException, TargetInvocationException, SerializationException, NullReferenceException
Invoke in class MethodBasejava.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionIndexOutOfRangeExceptionRankExceptionCultureNotFoundExceptionObjectDisposedExceptionTargetParameterCountExceptionOutOfMemoryExceptionFileLoadExceptionTargetInvocationExceptionSerializationExceptionNullReferenceExceptionpublic boolean IsDefined(NetType attributeType, boolean inherit) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
IsDefined in class MemberInfojava.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionpublic void setInitLocals(boolean InitLocals)
throws java.lang.Throwable
java.lang.Throwablepublic void setJCOInstance(JCObject instance)
setJCOInstance in class MethodInfo