public class IntrospectionTypeInfoFactoryImpl extends org.jboss.util.collection.WeakTypeCache<TypeInfo> implements TypeInfoFactory, AnnotationHelper, ClassInfoHelper
| Constructor and Description |
|---|
IntrospectionTypeInfoFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
AnnotationValue |
createAnnotationValue(AnnotationInfo info,
Object ann)
Create an annotation from the underlying implementation and its info type
|
protected TypeInfo |
findActualType(ClassInfo classInfo,
Class<?> reference,
int parameter) |
protected void |
generate(Class<?> clazz,
TypeInfo result) |
protected void |
generate(ParameterizedType type,
TypeInfo result) |
void |
generateTypeInfo(Class<?> clazz,
ClassInfoImpl info)
Generate the type info for a class
|
TypeInfo[] |
getActualTypeArguments(ParameterizedClassInfo classInfo)
Get the actual type parameters
|
AnnotationValue[] |
getAnnotations(Object obj)
Get the annotations for the annotated object
|
ClassInfo[] |
getClassInfos(Type[] classes)
Get the class infos for some classes
|
TypeInfo |
getComponentType(ClassInfo classInfo)
Get the component type for a collection
|
ConstructorInfoImpl[] |
getConstructors(ClassInfoImpl classInfo)
Get the constructors
|
protected Constructor<?>[] |
getDeclaredConstructors(Class<?> clazz) |
protected Field[] |
getDeclaredFields(Class<?> clazz) |
protected Method[] |
getDeclaredMethods(Class<?> clazz) |
FieldInfoImpl[] |
getFields(ClassInfoImpl classInfo)
Get the fields
|
protected TypeInfo |
getGenericArrayType(GenericArrayType type)
Get the information for an array type
|
InterfaceInfo[] |
getGenericInterfaces(ClassInfoImpl classInfo)
Get the generic interfaces
|
ClassInfo |
getGenericSuperClass(ClassInfoImpl classInfo)
Get the generic super class
|
InterfaceInfo[] |
getInterfaces(ClassInfoImpl classInfo)
Get the interfaces
|
TypeInfo |
getKeyType(ClassInfo classInfo)
Get the key type for a map
|
MethodInfoImpl[] |
getMethods(ClassInfoImpl classInfo)
Get the methods
|
TypeInfo |
getOwnerType(ParameterizedClassInfo classInfo)
Get the owner type
|
PackageInfoImpl |
getPackage(ClassInfoImpl classInfo)
Get the package for class
|
protected AnnotationValue[][] |
getParameterAnnotations(Annotation[][] annotations) |
ClassInfoImpl |
getSuperClass(ClassInfoImpl classInfo)
Get the super class
|
TypeInfo |
getTypeInfo(Class<?> clazz)
Get a type info
|
TypeInfo |
getTypeInfo(String name,
ClassLoader cl)
Get a type info
|
TypeInfo |
getTypeInfo(Type type)
Get a type info
|
TypeInfo[] |
getTypeInfos(Type[] classes)
Get the type infos for some classes
|
TypeInfo |
getValueType(ClassInfo classInfo)
Get the value type for a map
|
protected TypeInfo |
instantiate(Class<?> clazz) |
protected TypeInfo |
instantiate(ParameterizedType type) |
protected static Type |
locateActualType(Class reference,
int parameter,
Class clazz,
Type type) |
protected TypeInfo |
resolveComplexTypeInfo(ClassLoader cl,
String name)
Resolve complex type info.
|
public void generateTypeInfo(Class<?> clazz, ClassInfoImpl info)
clazz - the classinfo - the class infopublic ClassInfoImpl getSuperClass(ClassInfoImpl classInfo)
ClassInfoHelpergetSuperClass in interface ClassInfoHelperclassInfo - the class infopublic ClassInfo getGenericSuperClass(ClassInfoImpl classInfo)
ClassInfoHelpergetGenericSuperClass in interface ClassInfoHelperclassInfo - the class infopublic AnnotationValue[] getAnnotations(Object obj)
AnnotationHelpergetAnnotations in interface AnnotationHelperobj - the annotated objectpublic AnnotationValue createAnnotationValue(AnnotationInfo info, Object ann)
AnnotationHelpercreateAnnotationValue in interface AnnotationHelperinfo - the annotation infoann - the underlying annotationpublic ConstructorInfoImpl[] getConstructors(ClassInfoImpl classInfo)
ClassInfoHelpergetConstructors in interface ClassInfoHelperclassInfo - the class infopublic FieldInfoImpl[] getFields(ClassInfoImpl classInfo)
ClassInfoHelpergetFields in interface ClassInfoHelperclassInfo - the class infopublic MethodInfoImpl[] getMethods(ClassInfoImpl classInfo)
ClassInfoHelpergetMethods in interface ClassInfoHelperclassInfo - the class infopublic InterfaceInfo[] getInterfaces(ClassInfoImpl classInfo)
ClassInfoHelpergetInterfaces in interface ClassInfoHelperclassInfo - the class infopublic InterfaceInfo[] getGenericInterfaces(ClassInfoImpl classInfo)
ClassInfoHelpergetGenericInterfaces in interface ClassInfoHelperclassInfo - the class infopublic PackageInfoImpl getPackage(ClassInfoImpl classInfo)
ClassInfoHelpergetPackage in interface ClassInfoHelperclassInfo - the class infopublic TypeInfo[] getTypeInfos(Type[] classes)
classes - the classespublic ClassInfo[] getClassInfos(Type[] classes)
classes - the classespublic TypeInfo getTypeInfo(Class<?> clazz)
TypeInfoFactorygetTypeInfo in interface ClassInfoHelpergetTypeInfo in interface TypeInfoFactoryclazz - the classpublic TypeInfo getTypeInfo(Type type)
TypeInfoFactorygetTypeInfo in interface TypeInfoFactorytype - the typepublic TypeInfo getTypeInfo(String name, ClassLoader cl) throws ClassNotFoundException
TypeInfoFactorygetTypeInfo in interface TypeInfoFactoryname - the class namecl - the classloaderClassNotFoundException - when there is no such classprotected TypeInfo getGenericArrayType(GenericArrayType type)
getGenericArrayType in class org.jboss.util.collection.WeakTypeCache<TypeInfo>type - the array typeprotected TypeInfo resolveComplexTypeInfo(ClassLoader cl, String name) throws ClassNotFoundException
cl - the classloader to usename - the class nameClassNotFoundException - for any errorprotected TypeInfo instantiate(Class<?> clazz)
instantiate in class org.jboss.util.collection.WeakTypeCache<TypeInfo>protected TypeInfo instantiate(ParameterizedType type)
instantiate in class org.jboss.util.collection.WeakTypeCache<TypeInfo>protected void generate(Class<?> clazz, TypeInfo result)
generate in class org.jboss.util.collection.WeakTypeCache<TypeInfo>protected void generate(ParameterizedType type, TypeInfo result)
generate in class org.jboss.util.collection.WeakTypeCache<TypeInfo>protected Constructor<?>[] getDeclaredConstructors(Class<?> clazz)
protected AnnotationValue[][] getParameterAnnotations(Annotation[][] annotations)
public TypeInfo[] getActualTypeArguments(ParameterizedClassInfo classInfo)
ClassInfoHelpergetActualTypeArguments in interface ClassInfoHelperclassInfo - the parameterized class infopublic TypeInfo getOwnerType(ParameterizedClassInfo classInfo)
ClassInfoHelpergetOwnerType in interface ClassInfoHelperclassInfo - the parameterized class infopublic TypeInfo getComponentType(ClassInfo classInfo)
ClassInfoHelpergetComponentType in interface ClassInfoHelperclassInfo - the class infopublic TypeInfo getKeyType(ClassInfo classInfo)
ClassInfoHelpergetKeyType in interface ClassInfoHelperclassInfo - the class infopublic TypeInfo getValueType(ClassInfo classInfo)
ClassInfoHelpergetValueType in interface ClassInfoHelperclassInfo - the class infoprotected TypeInfo findActualType(ClassInfo classInfo, Class<?> reference, int parameter)
Copyright © 2016 JBoss by Red Hat. All rights reserved.