Package system.reflection
Class MethodBase
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.reflection.MemberInfo
-
- system.reflection.MethodBase
-
- All Implemented Interfaces:
IJCOBridgeReflected
- Direct Known Subclasses:
ConstructorInfo
,MethodInfo
public class MethodBase extends MemberInfo
The base .NET class managing System.Reflection.MethodBase, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Reflection.MethodBase
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798estatic java.lang.String
assemblyShortName
Assembly name: System.Private.CoreLibstatic java.lang.String
className
Qualified class name: System.Reflection.MethodBasestatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description MethodBase()
MethodBase(java.lang.Object instance)
Internal constructor.
-
Method Summary
-
Methods inherited from class system.reflection.MemberInfo
GetCustomAttributes, GetCustomAttributes, getDeclaringType, getIsCollectible, getMemberType, getMetadataToken, getModule, getName, getReflectedType, HasSameMetadataDefinitionAs, IsDefined
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Private.CoreLib- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Reflection.MethodBase- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classMemberInfo
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classMemberInfo
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classMemberInfo
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classMemberInfo
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classMemberInfo
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classMemberInfo
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static MethodBase cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoMethodBase
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
MethodBase
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
Invoke
public NetObject Invoke(NetObject obj, NetObject[] parameters) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Invoke
public NetObject Invoke(NetObject obj, BindingFlags invokeAttr, Binder binder, NetObject[] parameters, CultureInfo culture) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetCurrentMethod
public static MethodBase GetCurrentMethod() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, ArgumentNullException, NullReferenceException, NotImplementedException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
IndexOutOfRangeException
FormatException
ArgumentNullException
NullReferenceException
NotImplementedException
-
GetMethodFromHandle
public static MethodBase GetMethodFromHandle(RuntimeMethodHandle handle, RuntimeTypeHandle declaringType) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException, NullReferenceException, NotImplementedException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
IndexOutOfRangeException
RankException
CultureNotFoundException
ObjectDisposedException
NullReferenceException
NotImplementedException
-
GetMethodFromHandle
public static MethodBase GetMethodFromHandle(RuntimeMethodHandle handle) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException, NullReferenceException, NotImplementedException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
IndexOutOfRangeException
RankException
CultureNotFoundException
ObjectDisposedException
NullReferenceException
NotImplementedException
-
GetMethodBody
public MethodBody GetMethodBody() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
GetMethodImplementationFlags
public MethodImplAttributes GetMethodImplementationFlags() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetParameters
public ParameterInfo[] GetParameters() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetGenericArguments
public NetType[] GetGenericArguments() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
-
getContainsGenericParameters
public boolean getContainsGenericParameters() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsAbstract
public boolean getIsAbstract() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsAssembly
public boolean getIsAssembly() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsConstructedGenericMethod
public boolean getIsConstructedGenericMethod() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsConstructor
public boolean getIsConstructor() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsFamily
public boolean getIsFamily() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsFamilyAndAssembly
public boolean getIsFamilyAndAssembly() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsFamilyOrAssembly
public boolean getIsFamilyOrAssembly() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsFinal
public boolean getIsFinal() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsGenericMethod
public boolean getIsGenericMethod() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsGenericMethodDefinition
public boolean getIsGenericMethodDefinition() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsHideBySig
public boolean getIsHideBySig() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsPrivate
public boolean getIsPrivate() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsPublic
public boolean getIsPublic() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsSecurityCritical
public boolean getIsSecurityCritical() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
getIsSecuritySafeCritical
public boolean getIsSecuritySafeCritical() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
getIsSecurityTransparent
public boolean getIsSecurityTransparent() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
getIsSpecialName
public boolean getIsSpecialName() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsStatic
public boolean getIsStatic() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsVirtual
public boolean getIsVirtual() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCallingConvention
public CallingConventions getCallingConvention() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getAttributes
public MethodAttributes getAttributes() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getMethodImplementationFlags
public MethodImplAttributes getMethodImplementationFlags() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getMethodHandle
public RuntimeMethodHandle getMethodHandle() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-