java.lang.Object
de.grogra.reflect.MemberDecorator
de.grogra.reflect.TypeDecorator<T>
- Direct Known Subclasses:
LazyType
,ManageableType
-
Field Summary
Fields inherited from interface de.grogra.reflect.Member
ABSTRACT, 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
Fields inherited from interface de.grogra.reflect.Type
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, VOID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncloneObject
(T o, boolean deep) createArray
(int length) Type<?>
Type<?>
getDeclaredField
(int index) int
Type<?>
getDeclaredInterface
(int index) int
getDeclaredMethod
(int index) int
Type<?>
getDeclaredType
(int index) int
getDefaultElementValue
(String name) int
Returns the type id of this type.boolean
isInstance
(Object object) boolean
toString()
static <T> Type<T>
undecorate
(Type<T> t) Methods inherited from class de.grogra.reflect.MemberDecorator
getDeclaredAnnotation, getDeclaredAnnotationCount, getDeclaringType, getDecoratedMember, getDescriptor, getModifiers, getName, getSimpleName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface de.grogra.reflect.Member
getDeclaredAnnotation, getDeclaredAnnotationCount, getDeclaringType, getDescriptor, getModifiers, getName, getSimpleName
-
Constructor Details
-
TypeDecorator
-
-
Method Details
-
undecorate
-
getPackage
- Specified by:
getPackage
in interfaceType<T>
-
getBinaryName
- Specified by:
getBinaryName
in interfaceType<T>
-
getTypeId
public int getTypeId()Description copied from interface:Type
Returns the type id of this type. -
isInstance
- Specified by:
isInstance
in interfaceType<T>
-
getImplementationClass
- Specified by:
getImplementationClass
in interfaceType<T>
-
getTypeLoader
- Specified by:
getTypeLoader
in interfaceType<T>
-
getSupertype
- Specified by:
getSupertype
in interfaceType<T>
-
getDeclaredInterfaceCount
public int getDeclaredInterfaceCount()- Specified by:
getDeclaredInterfaceCount
in interfaceType<T>
-
getDeclaredInterface
- Specified by:
getDeclaredInterface
in interfaceType<T>
-
getDeclaredFieldCount
public int getDeclaredFieldCount()- Specified by:
getDeclaredFieldCount
in interfaceType<T>
-
getDeclaredField
- Specified by:
getDeclaredField
in interfaceType<T>
-
getDeclaredTypeCount
public int getDeclaredTypeCount()- Specified by:
getDeclaredTypeCount
in interfaceType<T>
-
getDeclaredType
- Specified by:
getDeclaredType
in interfaceType<T>
-
getDeclaredMethodCount
public int getDeclaredMethodCount()- Specified by:
getDeclaredMethodCount
in interfaceType<T>
-
getDeclaredMethod
- Specified by:
getDeclaredMethod
in interfaceType<T>
-
getComponentType
- Specified by:
getComponentType
in interfaceType<T>
-
getArrayType
- Specified by:
getArrayType
in interfaceType<T>
-
createArray
- Specified by:
createArray
in interfaceType<T>
-
toString
- Overrides:
toString
in classMemberDecorator
-
cloneObject
- Specified by:
cloneObject
in interfaceType<T>
- Throws:
CloneNotSupportedException
-
isStringSerializable
public boolean isStringSerializable()- Specified by:
isStringSerializable
in interfaceType<T>
-
valueOf
-
newInstance
public T newInstance() throws InvocationTargetException, InstantiationException, IllegalAccessException- Specified by:
newInstance
in interfaceType<T>
- Throws:
InvocationTargetException
InstantiationException
IllegalAccessException
-
getLookup
-
getDefaultElementValue
- Specified by:
getDefaultElementValue
in interfaceType<T>
-