java.lang.Object
de.grogra.reflect.MemberBase
de.grogra.reflect.TypeImpl<T>
- Direct Known Subclasses:
BoundedType
,ClassAdapter
,EnumerationType
,IntersectionType
,XArray
-
Field Summary
Fields inherited from class de.grogra.reflect.MemberBase
annots, declaringType, descriptor, modifiers, name
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
-
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) final Lookup
Returns the simple name of this member.int
Returns the type id of this type.boolean
isInstance
(Object object) boolean
toString()
Methods inherited from class de.grogra.reflect.MemberBase
getDeclaredAnnotation, getDeclaredAnnotationCount, getDeclaringType, getDescriptor, getModifiers, getName
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
-
Field Details
-
typeId
protected final int typeId
-
-
Constructor Details
-
TypeImpl
-
-
Method Details
-
getBinaryName
- Specified by:
getBinaryName
in interfaceType<T>
-
getPackage
- Specified by:
getPackage
in interfaceType<T>
-
getTypeId
public int getTypeId()Description copied from interface:Type
Returns the type id of this type. -
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>
-
getSimpleName
Description copied from interface:Member
Returns the simple name of this member. This is the single identifier with which the member is declared in source code, e.g.,Object
,out
,println
.- Specified by:
getSimpleName
in interfaceMember
- Overrides:
getSimpleName
in classMemberBase
- Returns:
- simple name of the member
-
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 classMemberBase
-
isInstance
- Specified by:
isInstance
in interfaceType<T>
-
getImplementationClass
- Specified by:
getImplementationClass
in interfaceType<T>
-
getTypeLoader
- Specified by:
getTypeLoader
in interfaceType<T>
-
cloneObject
- Specified by:
cloneObject
in interfaceType<T>
-
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>
-