public class MethodBuilder extends MethodInfo
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Reflection.Emit.MethodBuilder
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: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: mscorlib
|
static java.lang.String |
className
Qualified class name: System.Reflection.Emit.MethodBuilder
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
MethodBuilder() |
MethodBuilder(java.lang.Object instance)
Internal constructor.
|
getReturnParameter, getReturnType, getReturnTypeCustomAttributesgetAttributes, getCallingConvention, getContainsGenericParameters, GetCurrentMethod, getIsAbstract, getIsAssembly, getIsConstructor, getIsFamily, getIsFamilyAndAssembly, getIsFamilyOrAssembly, getIsFinal, getIsGenericMethod, getIsGenericMethodDefinition, getIsHideBySig, getIsPrivate, getIsPublic, getIsSecurityCritical, getIsSecuritySafeCritical, getIsSecurityTransparent, getIsSpecialName, getIsStatic, getIsVirtual, GetMethodBody, GetMethodFromHandle, GetMethodFromHandle, getMethodHandle, getMethodImplementationFlags, InvokegetDeclaringType, getMemberType, getMetadataToken, getModule, getName, getReflectedTypepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public MethodBuilder()
throws java.lang.Throwable
java.lang.Throwablepublic MethodBuilder(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic void AddDeclarativeSecurity(SecurityAction action, PermissionSet pset) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, NotSupportedException, NullReferenceException, SecurityException, NotImplementedException
public static MethodBuilder cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into MethodBuilder, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedMethodBuilder instancejava.lang.Throwable - in case of error during cast operationpublic void CreateMethodBody(byte[] il,
int count)
throws java.lang.Throwable,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException
java.lang.ThrowableInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionpublic void CreateMethodBody(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException
java.lang.ThrowableInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionpublic GenericTypeParameterBuilder[] DefineGenericParameters(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionpublic GenericTypeParameterBuilder[] DefineGenericParameters(java.lang.String... names) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionpublic ParameterBuilder DefineParameter(int position, ParameterAttributes attributes, java.lang.String strParamName) throws java.lang.Throwable, ArgumentOutOfRangeException, InvalidOperationException, ArgumentException, ArgumentNullException, NotSupportedException, NotImplementedException
public MethodInfo GetBaseDefinition() throws java.lang.Throwable
GetBaseDefinition in class MethodInfojava.lang.Throwablepublic NetObject[] GetCustomAttributes(boolean inherit) throws java.lang.Throwable, NotSupportedException
GetCustomAttributes in class MethodInfojava.lang.ThrowableNotSupportedExceptionpublic NetObject[] GetCustomAttributes(NetType attributeType, boolean inherit) throws java.lang.Throwable, NotSupportedException
GetCustomAttributes in class MethodInfojava.lang.ThrowableNotSupportedExceptionpublic NetType[] GetGenericArguments() throws java.lang.Throwable
GetGenericArguments in class MethodInfojava.lang.Throwablepublic MethodInfo GetGenericMethodDefinition() throws java.lang.Throwable, InvalidOperationException
GetGenericMethodDefinition in class MethodInfojava.lang.ThrowableInvalidOperationExceptionpublic ILGenerator GetILGenerator() throws java.lang.Throwable, InvalidOperationException, ArgumentException
java.lang.ThrowableInvalidOperationExceptionArgumentExceptionpublic ILGenerator GetILGenerator(int size) throws java.lang.Throwable, InvalidOperationException, ArgumentException, ArgumentNullException
java.lang.ThrowableInvalidOperationExceptionArgumentExceptionArgumentNullExceptionpublic boolean getInitLocals()
throws java.lang.Throwable,
InvalidOperationException
java.lang.ThrowableInvalidOperationExceptionpublic 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 MethodInfojava.lang.Throwablepublic Module GetModule() throws java.lang.Throwable
java.lang.Throwablepublic ParameterInfo[] GetParameters() throws java.lang.Throwable, NotSupportedException, ArgumentNullException
GetParameters in class MethodInfojava.lang.ThrowableNotSupportedExceptionArgumentNullExceptionpublic java.lang.String getSignature()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
NotSupportedException,
InvalidOperationException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionNotSupportedExceptionInvalidOperationExceptionpublic MethodToken GetToken() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, NotSupportedException, InvalidOperationException, NotImplementedException
public NetObject Invoke(NetObject obj, BindingFlags invokeAttr, Binder binder, NetObject[] parameters, CultureInfo culture) throws java.lang.Throwable, NotSupportedException
Invoke in class MethodInfojava.lang.ThrowableNotSupportedExceptionpublic boolean IsDefined(NetType attributeType, boolean inherit) throws java.lang.Throwable, NotSupportedException
IsDefined in class MethodInfojava.lang.ThrowableNotSupportedExceptionpublic MethodInfo MakeGenericMethod(NetType... typeArguments) throws java.lang.Throwable, InvalidOperationException
MakeGenericMethod in class MethodInfojava.lang.ThrowableInvalidOperationExceptionpublic void SetCustomAttribute(ConstructorInfo con, byte[] binaryAttribute) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, NotSupportedException, NotImplementedException
public void SetCustomAttribute(ConstructorInfo dupParam0, JCORefOut dupParam1) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, NotSupportedException, NotImplementedException
public void SetCustomAttribute(CustomAttributeBuilder customBuilder) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, NotSupportedException, NotImplementedException
public void SetImplementationFlags(MethodImplAttributes attributes) throws java.lang.Throwable, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, NotSupportedException, NotImplementedException
public void setInitLocals(boolean InitLocals)
throws java.lang.Throwable,
InvalidOperationException
java.lang.ThrowableInvalidOperationExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class MethodInfopublic void SetMarshal(UnmanagedMarshal unmanagedMarshal) throws java.lang.Throwable, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, NotSupportedException, NotImplementedException
public void SetParameters(NetType... parameterTypes) throws java.lang.Throwable, NotImplementedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, FormatException, InvalidOperationException
java.lang.ThrowableNotImplementedExceptionArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionFormatExceptionInvalidOperationExceptionpublic void SetReturnType(NetType returnType) throws java.lang.Throwable, NotImplementedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, FormatException, InvalidOperationException
java.lang.ThrowableNotImplementedExceptionArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionFormatExceptionInvalidOperationExceptionpublic void SetSymCustomAttribute(java.lang.String name,
byte[] data)
throws java.lang.Throwable,
InvalidOperationException,
ArgumentOutOfRangeException
java.lang.ThrowableInvalidOperationExceptionArgumentOutOfRangeExceptionpublic void SetSymCustomAttribute(java.lang.String dupParam0,
JCORefOut dupParam1)
throws java.lang.Throwable,
InvalidOperationException,
ArgumentOutOfRangeException
java.lang.ThrowableInvalidOperationExceptionArgumentOutOfRangeException