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, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..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.StringassemblyFullNameFully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: mscorlibstatic java.lang.StringclassNameQualified class name: System.Reflection.MethodBasestatic JCTypeclassTypeThe 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, getMemberType, getMetadataToken, getModule, getName, getReflectedType, IsDefined
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: mscorlib- 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:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classMemberInfo- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classMemberInfo- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classMemberInfo- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classMemberInfo- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classMemberInfo
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classMemberInfo- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static MethodBase cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoMethodBase, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
MethodBaseinstance- 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, NotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, InvalidOperationException, NotImplementedException
-
GetMethodFromHandle
public static MethodBase GetMethodFromHandle(RuntimeMethodHandle handle) throws java.lang.Throwable, ArgumentException, NotSupportedException, ArgumentNullException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, NotImplementedException
-
GetMethodFromHandle
public static MethodBase GetMethodFromHandle(RuntimeMethodHandle handle, RuntimeTypeHandle declaringType) throws java.lang.Throwable, ArgumentException, NotSupportedException, ArgumentNullException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, NotImplementedException
-
GetMethodBody
public MethodBody GetMethodBody() throws java.lang.Throwable, InvalidOperationException
- Throws:
java.lang.ThrowableInvalidOperationException
-
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, NotSupportedException
- Throws:
java.lang.ThrowableNotSupportedException
-
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
-
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, NotImplementedException- Throws:
java.lang.ThrowableNotImplementedException
-
getIsSecuritySafeCritical
public boolean getIsSecuritySafeCritical() throws java.lang.Throwable, NotImplementedException- Throws:
java.lang.ThrowableNotImplementedException
-
getIsSecurityTransparent
public boolean getIsSecurityTransparent() throws java.lang.Throwable, NotImplementedException- Throws:
java.lang.ThrowableNotImplementedException
-
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
-
-