Class NetType
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- org.mases.jcobridge.netreflection.NetType
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class NetType extends NetObject
The base .NET class managing System.Type, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089. ExtendsNetObject
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNamestatic java.lang.StringassemblyShortNamestatic java.lang.StringclassNamestatic JCTypeclassType
-
Constructor Summary
Constructors Constructor Description NetType(java.lang.Object instance)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidAssertCast(JCType to, IJCOBridgeReflected from)static voidAssertCast(IJCOBridgeReflected to, IJCOBridgeReflected from)static booleanCanCast(JCType to, JCType from)static booleanCanCast(JCType to, IJCOBridgeReflected from)static booleanCanCast(IJCOBridgeReflected to, IJCOBridgeReflected from)java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class Typestatic <T extends IJCOBridgeReflected>
java.lang.StringGetType(java.lang.Class<T> tClass)static booleanIsAssignableFrom(JCType to, JCType from)static booleanIsAssignableFrom(IJCOBridgeReflected to, IJCOBridgeReflected from)static booleanIsSubclassOf(JCType first, JCType second)static booleanIsSubclassOf(IJCOBridgeReflected first, IJCOBridgeReflected second)-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
cast, Equals, Equals, GetHashCode, GetType, hashCode, setJCOInstance, toString, ToString
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
- See Also:
- Constant Field Values
-
classType
public static JCType classType
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNetObject- 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 classNetObject- 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 classNetObject- 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 classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
AssertCast
public static void AssertCast(IJCOBridgeReflected to, IJCOBridgeReflected from) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
AssertCast
public static void AssertCast(JCType to, IJCOBridgeReflected from) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
CanCast
public static boolean CanCast(IJCOBridgeReflected to, IJCOBridgeReflected from) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
CanCast
public static boolean CanCast(JCType to, IJCOBridgeReflected from) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
CanCast
public static boolean CanCast(JCType to, JCType from) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
IsAssignableFrom
public static boolean IsAssignableFrom(IJCOBridgeReflected to, IJCOBridgeReflected from) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
IsAssignableFrom
public static boolean IsAssignableFrom(JCType to, JCType from) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
IsSubclassOf
public static boolean IsSubclassOf(IJCOBridgeReflected first, IJCOBridgeReflected second) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
IsSubclassOf
public static boolean IsSubclassOf(JCType first, JCType second) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetType
public static <T extends IJCOBridgeReflected> java.lang.String GetType(java.lang.Class<T> tClass) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException, java.lang.NoSuchFieldException, java.lang.SecurityException
- Throws:
java.lang.IllegalArgumentExceptionjava.lang.IllegalAccessExceptionjava.lang.NoSuchFieldExceptionjava.lang.SecurityException
-
-