de.grogra.reflect
public class TypeDecorator<T> extends MemberDecorator implements Type<T>
BOOLEAN, BYTE, CHAR, CLASS, DOUBLE, FLOAT, FLOATING_POINT, INT, INTEGRAL, INVALID, LOCAL_CLASS_MODIFIERS, LONG, MEMBER_CLASS_MODIFIERS, MEMBER_INTERFACE_MODIFIERS, NULL, NUMBER, NUMERIC, OBJECT, SHORT, STRING, TEXTAREA, TOP_LEVEL_CLASS_MODIFIERS, TOP_LEVEL_INTERFACE_MODIFIERS, TYPE, TYPE_0, VOIDABSTRACT, ACCESS_MODIFIERS, ARRAY, BRIDGE, CONSTANT, FINAL, INTERFACE, JAVA_MODIFIERS, LOCAL_CLASS, MIN_UNUSED_MODIFIER, NATIVE, PRIVATE, PROTECTED, PUBLIC, STATIC, STRICT, SYNCHRONIZED, SYNTHETIC, TRANSIENT, VARARGS, VOLATILE| Constructor and Description |
|---|
TypeDecorator(Type<T> type) |
| Modifier and Type | Method and Description |
|---|---|
T |
cloneObject(T o,
boolean deep) |
java.lang.Object |
createArray(int length) |
Type<?> |
getArrayType() |
java.lang.String |
getBinaryName() |
Type<?> |
getComponentType() |
Field |
getDeclaredField(int index) |
int |
getDeclaredFieldCount() |
Type<?> |
getDeclaredInterface(int index) |
int |
getDeclaredInterfaceCount() |
Method |
getDeclaredMethod(int index) |
int |
getDeclaredMethodCount() |
Type<?> |
getDeclaredType(int index) |
int |
getDeclaredTypeCount() |
java.lang.Object |
getDefaultElementValue(java.lang.String name) |
java.lang.Class<T> |
getImplementationClass() |
Lookup |
getLookup() |
java.lang.String |
getPackage() |
Type<? super T> |
getSupertype() |
int |
getTypeId()
Returns the type id of this type.
|
TypeLoader |
getTypeLoader() |
boolean |
isInstance(java.lang.Object object) |
boolean |
isStringSerializable() |
T |
newInstance() |
java.lang.String |
toString() |
static <T> Type<T> |
undecorate(Type<T> t) |
T |
valueOf(java.lang.String s) |
getDeclaredAnnotation, getDeclaredAnnotationCount, getDeclaringType, getDecoratedMember, getDescriptor, getModifiers, getName, getSimpleNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDeclaredAnnotation, getDeclaredAnnotationCount, getDeclaringType, getDescriptor, getModifiers, getName, getSimpleNamepublic T cloneObject(T o, boolean deep) throws java.lang.CloneNotSupportedException
cloneObject in interface Type<T>java.lang.CloneNotSupportedExceptionpublic java.lang.Object createArray(int length)
createArray in interface Type<T>public Type<?> getArrayType()
getArrayType in interface Type<T>public java.lang.String getBinaryName()
getBinaryName in interface Type<T>public Type<?> getComponentType()
getComponentType in interface Type<T>public Field getDeclaredField(int index)
getDeclaredField in interface Type<T>public int getDeclaredFieldCount()
getDeclaredFieldCount in interface Type<T>public Type<?> getDeclaredInterface(int index)
getDeclaredInterface in interface Type<T>public int getDeclaredInterfaceCount()
getDeclaredInterfaceCount in interface Type<T>public Method getDeclaredMethod(int index)
getDeclaredMethod in interface Type<T>public int getDeclaredMethodCount()
getDeclaredMethodCount in interface Type<T>public Type<?> getDeclaredType(int index)
getDeclaredType in interface Type<T>public int getDeclaredTypeCount()
getDeclaredTypeCount in interface Type<T>public java.lang.Object getDefaultElementValue(java.lang.String name)
getDefaultElementValue in interface Type<T>public java.lang.Class<T> getImplementationClass()
getImplementationClass in interface Type<T>public java.lang.String getPackage()
getPackage in interface Type<T>public Type<? super T> getSupertype()
getSupertype in interface Type<T>public int getTypeId()
Typepublic TypeLoader getTypeLoader()
getTypeLoader in interface Type<T>public boolean isInstance(java.lang.Object object)
isInstance in interface Type<T>public boolean isStringSerializable()
isStringSerializable in interface Type<T>public T newInstance() throws java.lang.reflect.InvocationTargetException, java.lang.InstantiationException, java.lang.IllegalAccessException
newInstance in interface Type<T>java.lang.reflect.InvocationTargetExceptionjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionpublic java.lang.String toString()
toString in class MemberDecorator