public final class Class4D<T>
extends java.lang.Object
Constructor and Description |
---|
Class4D() |
Modifier and Type | Method and Description |
---|---|
T |
cast(java.lang.Object obj) |
boolean |
desiredAssertionStatus() |
boolean |
equals(java.lang.Object o) |
static java.lang.Class<?> |
forName(java.lang.String className)
The TotalCross deployer can find classes that are instantiated using Class.forName if, and only if, they are
String constants.
|
java.lang.String |
getCanonicalName() |
java.lang.Class<?> |
getComponentType() |
java.lang.reflect.Constructor<?> |
getConstructor(java.lang.Class<?>[] parameterTypes) |
java.lang.reflect.Constructor<?>[] |
getConstructors() |
java.lang.reflect.Constructor<?> |
getDeclaredConstructor(java.lang.Class<?>[] parameterTypes) |
java.lang.reflect.Constructor<?>[] |
getDeclaredConstructors() |
java.lang.reflect.Field |
getDeclaredField(java.lang.String name) |
java.lang.reflect.Field[] |
getDeclaredFields() |
java.lang.reflect.Method |
getDeclaredMethod(java.lang.String name,
java.lang.Class<?>[] parameterTypes) |
java.lang.reflect.Method[] |
getDeclaredMethods() |
T[] |
getEnumConstants()
Returns the enumeration constants of this class, or
null if this class is not an
Enum . |
java.lang.reflect.Field |
getField(java.lang.String name) |
java.lang.reflect.Field[] |
getFields() |
java.lang.Class<?>[] |
getInterfaces() |
java.lang.reflect.Method |
getMethod(java.lang.String name,
java.lang.Class<?>[] parameterTypes) |
java.lang.reflect.Method[] |
getMethods() |
int |
getModifiers() |
java.lang.String |
getName()
Returns the fully qualified name of this class.
|
java.lang.Object[] |
getSigners() |
java.lang.String |
getSimpleName() |
java.lang.Class<?> |
getSuperclass() |
boolean |
isArray() |
boolean |
isAssignableFrom(java.lang.Class<?> cls) |
boolean |
isInstance(java.lang.Object obj)
Returns true if the given object is an instance of this class.
|
boolean |
isInterface() |
boolean |
isPrimitive() |
java.lang.Object |
newInstance()
Creates a new instance of this class.
|
java.lang.String |
toString()
Returns the fully qualified name of this class.
|
public static java.lang.Class<?> forName(java.lang.String className) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
Vm.attachLibrary(java.lang.String)
public java.lang.Object newInstance() throws java.lang.InstantiationException, java.lang.IllegalAccessException
public MyClass()
)java.lang.InstantiationException
- If you try to instantiate an interface, abstract class or arrayjava.lang.IllegalAccessException
- If you try to instantiate a private classpublic boolean isInstance(java.lang.Object obj)
public java.lang.String getName()
public java.lang.String getCanonicalName()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public T[] getEnumConstants()
Enum
.Enum
constants
associated with this class, or null if this
class is not an enum
.public java.lang.String getSimpleName()
public T cast(java.lang.Object obj)
public boolean isAssignableFrom(java.lang.Class<?> cls)
public boolean isInterface()
public boolean isArray()
public boolean isPrimitive()
public java.lang.Class<?> getSuperclass()
public java.lang.Class<?>[] getInterfaces()
public java.lang.Class<?> getComponentType()
public int getModifiers()
public java.lang.Object[] getSigners()
public java.lang.reflect.Field[] getFields() throws java.lang.SecurityException
java.lang.SecurityException
public java.lang.reflect.Method[] getMethods() throws java.lang.SecurityException
java.lang.SecurityException
public java.lang.reflect.Constructor<?>[] getConstructors() throws java.lang.SecurityException
java.lang.SecurityException
public java.lang.reflect.Field getField(java.lang.String name) throws java.lang.NoSuchFieldException, java.lang.SecurityException
java.lang.NoSuchFieldException
java.lang.SecurityException
public java.lang.reflect.Method getMethod(java.lang.String name, java.lang.Class<?>[] parameterTypes) throws java.lang.NoSuchMethodException, java.lang.SecurityException
java.lang.NoSuchMethodException
java.lang.SecurityException
public java.lang.reflect.Constructor<?> getConstructor(java.lang.Class<?>[] parameterTypes) throws java.lang.NoSuchMethodException, java.lang.SecurityException
java.lang.NoSuchMethodException
java.lang.SecurityException
public java.lang.reflect.Field[] getDeclaredFields() throws java.lang.SecurityException
java.lang.SecurityException
public java.lang.reflect.Method[] getDeclaredMethods() throws java.lang.SecurityException
java.lang.SecurityException
public java.lang.reflect.Constructor<?>[] getDeclaredConstructors() throws java.lang.SecurityException
java.lang.SecurityException
public java.lang.reflect.Field getDeclaredField(java.lang.String name) throws java.lang.NoSuchFieldException, java.lang.SecurityException
java.lang.NoSuchFieldException
java.lang.SecurityException
public java.lang.reflect.Method getDeclaredMethod(java.lang.String name, java.lang.Class<?>[] parameterTypes) throws java.lang.NoSuchMethodException, java.lang.SecurityException
java.lang.NoSuchMethodException
java.lang.SecurityException
public java.lang.reflect.Constructor<?> getDeclaredConstructor(java.lang.Class<?>[] parameterTypes) throws java.lang.NoSuchMethodException, java.lang.SecurityException
java.lang.NoSuchMethodException
java.lang.SecurityException
public boolean desiredAssertionStatus()