java.lang.Object
de.grogra.reflect.MemberBase
de.grogra.reflect.TypeImpl<T>
- Direct Known Subclasses:
BoundedType,ClassAdapter,EnumerationType,IntersectionType,XArray
-
Field Summary
FieldsFields inherited from class de.grogra.reflect.MemberBase
annots, declaringType, descriptor, modifiers, nameFields inherited from interface de.grogra.reflect.Member
ABSTRACT, ACCESS_MODIFIERS, ARRAY, BRIDGE, CONSTANT, FINAL, GLOBAL, INTERFACE, JAVA_MODIFIERS, LOCAL_CLASS, MIN_UNUSED_MODIFIER, NATIVE, PRIVATE, PROTECTED, PUBLIC, STATIC, STRICT, SYNCHRONIZED, SYNTHETIC, TRANSIENT, VARARGS, VOLATILEFields 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) intType<?> getDeclaredInterface(int index) intgetDeclaredMethod(int index) intType<?> getDeclaredType(int index) intgetDefaultElementValue(String name) final LookupReturns the simple name of this member.intReturns the type id of this type.booleanisInstance(Object object) booleantoString()Methods inherited from class de.grogra.reflect.MemberBase
getDeclaredAnnotation, getDeclaredAnnotationCount, getDeclaringType, getDescriptor, getModifiers, getNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
getBinaryNamein interfaceType<T>
-
getPackage
- Specified by:
getPackagein interfaceType<T>
-
getTypeId
public int getTypeId()Description copied from interface:TypeReturns the type id of this type. -
getSupertype
- Specified by:
getSupertypein interfaceType<T>
-
getDeclaredInterfaceCount
public int getDeclaredInterfaceCount()- Specified by:
getDeclaredInterfaceCountin interfaceType<T>
-
getDeclaredInterface
- Specified by:
getDeclaredInterfacein interfaceType<T>
-
getDeclaredFieldCount
public int getDeclaredFieldCount()- Specified by:
getDeclaredFieldCountin interfaceType<T>
-
getDeclaredField
- Specified by:
getDeclaredFieldin interfaceType<T>
-
getDeclaredTypeCount
public int getDeclaredTypeCount()- Specified by:
getDeclaredTypeCountin interfaceType<T>
-
getDeclaredType
- Specified by:
getDeclaredTypein interfaceType<T>
-
getDeclaredMethodCount
public int getDeclaredMethodCount()- Specified by:
getDeclaredMethodCountin interfaceType<T>
-
getDeclaredMethod
- Specified by:
getDeclaredMethodin interfaceType<T>
-
getSimpleName
Description copied from interface:MemberReturns 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:
getSimpleNamein interfaceMember- Overrides:
getSimpleNamein classMemberBase- Returns:
- simple name of the member
-
getComponentType
- Specified by:
getComponentTypein interfaceType<T>
-
getArrayType
- Specified by:
getArrayTypein interfaceType<T>
-
createArray
- Specified by:
createArrayin interfaceType<T>
-
toString
- Overrides:
toStringin classMemberBase
-
isInstance
- Specified by:
isInstancein interfaceType<T>
-
getImplementationClass
- Specified by:
getImplementationClassin interfaceType<T>
-
getTypeLoader
- Specified by:
getTypeLoaderin interfaceType<T>
-
cloneObject
- Specified by:
cloneObjectin interfaceType<T>
-
isStringSerializable
public boolean isStringSerializable()- Specified by:
isStringSerializablein interfaceType<T>
-
valueOf
-
newInstance
public T newInstance() throws InvocationTargetException, InstantiationException, IllegalAccessException- Specified by:
newInstancein interfaceType<T>- Throws:
InvocationTargetExceptionInstantiationExceptionIllegalAccessException
-
getLookup
-
getDefaultElementValue
- Specified by:
getDefaultElementValuein interfaceType<T>
-
getSignature
- Specified by:
getSignaturein interfaceType<T>
-