public class MethodBase extends MemberInfo
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Reflection.MethodBase
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.MethodBase
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
MethodBase() |
MethodBase(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static MethodBase |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into MethodBase, a cast assert is made to check if types are compatible. |
MethodAttributes |
getAttributes()
Gets the value of the .NET property Attributes.
|
CallingConventions |
getCallingConvention()
Gets the value of the .NET property CallingConvention.
|
boolean |
getContainsGenericParameters()
Gets the value of the .NET property ContainsGenericParameters.
|
static MethodBase |
GetCurrentMethod()
Invokes the .NET member GetCurrentMethod.
|
NetType[] |
GetGenericArguments()
Invokes the .NET member GetGenericArguments.
|
boolean |
getIsAbstract()
Gets the value of the .NET property IsAbstract.
|
boolean |
getIsAssembly()
Gets the value of the .NET property IsAssembly.
|
boolean |
getIsConstructedGenericMethod()
Gets the value of the .NET property IsConstructedGenericMethod.
|
boolean |
getIsConstructor()
Gets the value of the .NET property IsConstructor.
|
boolean |
getIsFamily()
Gets the value of the .NET property IsFamily.
|
boolean |
getIsFamilyAndAssembly()
Gets the value of the .NET property IsFamilyAndAssembly.
|
boolean |
getIsFamilyOrAssembly()
Gets the value of the .NET property IsFamilyOrAssembly.
|
boolean |
getIsFinal()
Gets the value of the .NET property IsFinal.
|
boolean |
getIsGenericMethod()
Gets the value of the .NET property IsGenericMethod.
|
boolean |
getIsGenericMethodDefinition()
Gets the value of the .NET property IsGenericMethodDefinition.
|
boolean |
getIsHideBySig()
Gets the value of the .NET property IsHideBySig.
|
boolean |
getIsPrivate()
Gets the value of the .NET property IsPrivate.
|
boolean |
getIsPublic()
Gets the value of the .NET property IsPublic.
|
boolean |
getIsSecurityCritical()
Gets the value of the .NET property IsSecurityCritical.
|
boolean |
getIsSecuritySafeCritical()
Gets the value of the .NET property IsSecuritySafeCritical.
|
boolean |
getIsSecurityTransparent()
Gets the value of the .NET property IsSecurityTransparent.
|
boolean |
getIsSpecialName()
Gets the value of the .NET property IsSpecialName.
|
boolean |
getIsStatic()
Gets the value of the .NET property IsStatic.
|
boolean |
getIsVirtual()
Gets the value of the .NET property IsVirtual.
|
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. |
MethodBody |
GetMethodBody()
Invokes the .NET member GetMethodBody.
|
static MethodBase |
GetMethodFromHandle(RuntimeMethodHandle handle)
Invokes the .NET member GetMethodFromHandle.
|
static MethodBase |
GetMethodFromHandle(RuntimeMethodHandle handle,
RuntimeTypeHandle declaringType)
Invokes the .NET member GetMethodFromHandle.
|
RuntimeMethodHandle |
getMethodHandle()
Gets the value of the .NET property MethodHandle.
|
MethodImplAttributes |
getMethodImplementationFlags()
Gets the value of the .NET property MethodImplementationFlags.
|
MethodImplAttributes |
GetMethodImplementationFlags()
Invokes the .NET member GetMethodImplementationFlags.
|
ParameterInfo[] |
GetParameters()
Invokes the .NET member GetParameters.
|
NetObject |
Invoke(NetObject obj,
BindingFlags invokeAttr,
Binder binder,
NetObject[] parameters,
CultureInfo culture)
Invokes the .NET member Invoke.
|
NetObject |
Invoke(NetObject obj,
NetObject[] parameters)
Invokes the .NET member Invoke.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
getCustomAttributes, GetCustomAttributes, GetCustomAttributes, GetCustomAttributesData, getDeclaringType, getIsCollectible, getMemberType, getMetadataToken, getModule, getName, getReflectedType, HasSameMetadataDefinitionAs, IsDefinedpublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public MethodBase()
throws java.lang.Throwable
java.lang.Throwablepublic MethodBase(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 MethodBase cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into MethodBase, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedMethodBase instancejava.lang.Throwable - in case of error during cast operationpublic MethodAttributes getAttributes() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic CallingConventions getCallingConvention() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getContainsGenericParameters()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static MethodBase GetCurrentMethod() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, ArgumentNullException, NullReferenceException, NotImplementedException
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 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 itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itArgumentNullException - if the .NET member raises itNullReferenceException - if the .NET member raises itNotImplementedException - if the .NET member raises itpublic NetType[] GetGenericArguments() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
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 boolean getIsAbstract()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsAssembly()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsConstructedGenericMethod()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsConstructor()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsFamily()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsFamilyAndAssembly()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsFamilyOrAssembly()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsFinal()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsGenericMethod()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsGenericMethodDefinition()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsHideBySig()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsPrivate()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsPublic()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsSecurityCritical()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
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 itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic boolean getIsSecuritySafeCritical()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
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 itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic boolean getIsSecurityTransparent()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
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 itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic boolean getIsSpecialName()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsStatic()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsVirtual()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class MemberInfopublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class MemberInfopublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class MemberInfonull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class MemberInfopublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class MemberInfopublic MethodBody GetMethodBody() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
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 itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic static MethodBase GetMethodFromHandle(RuntimeMethodHandle handle) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException, NullReferenceException, NotImplementedException
handle - 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 itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itNullReferenceException - if the .NET member raises itNotImplementedException - if the .NET member raises itpublic static MethodBase GetMethodFromHandle(RuntimeMethodHandle handle, RuntimeTypeHandle declaringType) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException, NullReferenceException, NotImplementedException
handle - the argument of type RuntimeMethodHandledeclaringType - 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 itNullReferenceException - if the .NET member raises itNotImplementedException - if the .NET member raises itpublic RuntimeMethodHandle getMethodHandle() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic MethodImplAttributes getMethodImplementationFlags() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic MethodImplAttributes GetMethodImplementationFlags() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic ParameterInfo[] GetParameters() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic NetObject Invoke(NetObject obj, BindingFlags invokeAttr, Binder binder, NetObject[] parameters, CultureInfo culture) throws java.lang.Throwable
obj - the argument of type NetObjectinvokeAttr - the argument of type BindingFlagsbinder - the argument of type Binderparameters - the argument of type NetObject[]culture - the argument of type CultureInfojava.lang.Throwable - if the call fails in the bridge or in the CLRpublic NetObject Invoke(NetObject obj, NetObject[] parameters) throws java.lang.Throwable
obj - the argument of type NetObjectparameters - the argument of type NetObject[]java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class MemberInfoinstance - the new underlying object