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.String
assemblyFullName
static java.lang.String
assemblyShortName
static java.lang.String
className
static JCType
classType
-
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 void
AssertCast(JCType to, IJCOBridgeReflected from)
static void
AssertCast(IJCOBridgeReflected to, IJCOBridgeReflected from)
static boolean
CanCast(JCType to, JCType from)
static boolean
CanCast(JCType to, IJCOBridgeReflected from)
static boolean
CanCast(IJCOBridgeReflected to, IJCOBridgeReflected from)
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typestatic <T extends IJCOBridgeReflected>
java.lang.StringGetType(java.lang.Class<T> tClass)
static boolean
IsAssignableFrom(JCType to, JCType from)
static boolean
IsAssignableFrom(IJCOBridgeReflected to, IJCOBridgeReflected from)
static boolean
IsSubclassOf(JCType first, JCType second)
static boolean
IsSubclassOf(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:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObject
- 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 classNetObject
- 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 classNetObject
- 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 classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing 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.IllegalArgumentException
java.lang.IllegalAccessException
java.lang.NoSuchFieldException
java.lang.SecurityException
-
-