|
JBoss Reflection 2.2.1.SP1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.util.JBossObject
org.jboss.reflect.spi.AbstractTypeInfo
org.jboss.reflect.spi.DelegateClassInfo
org.jboss.reflect.plugins.javassist.JavassistParameterizedClassInfo
public class JavassistParameterizedClassInfo
Delegate class info to handle generic parameterized types in javassist
Field Summary |
---|
Fields inherited from class org.jboss.reflect.spi.DelegateClassInfo |
---|
delegate |
Fields inherited from class org.jboss.util.JBossObject |
---|
hashCode, log, toString |
Fields inherited from interface org.jboss.reflect.spi.ModifierInfo |
---|
ABSTRACT, CONSTANT, FINAL, PACKAGE, PACKAGE_ABSTRACT, PACKAGE_CONSTANT, PACKAGE_STATIC, PRIVATE, PRIVATE_CONSTANT, PRIVATE_STATIC, PROTECTED, PROTECTED_ABSTRACT, PROTECTED_CONSTANT, PROTECTED_STATIC, PUBLIC, PUBLIC_ABSTRACT, PUBLIC_CONSTANT, PUBLIC_STATIC, STATIC |
Constructor Summary | |
---|---|
JavassistParameterizedClassInfo(JavassistTypeInfoFactoryImpl factory,
ClassInfo delegate,
ClassLoader classLoader,
javassist.bytecode.SignatureAttribute.TypeArgument[] typeArguments,
org.jboss.reflect.plugins.javassist.JavassistTypeVariableSpy spy)
Constructor |
|
JavassistParameterizedClassInfo(JavassistTypeInfoFactoryImpl factory,
ClassInfo delegate,
Type[] reflectTypeArguments)
Constructor |
Method Summary | |
---|---|
TypeInfo[] |
getActualTypeArguments()
Get the actual type parameters |
ClassLoader |
getClassLoader()
Get the classloader for this class info. |
ClassLoader |
getClassLoaderInternal()
|
javassist.bytecode.SignatureAttribute.ClassSignature |
getClassSignature()
|
TypeInfo |
getComponentType()
Get the component type if it is a collection or an array |
JavassistTypeInfoFactoryImpl |
getFactory()
|
TypeInfo |
getKeyType()
Get the key type if it is a map |
TypeInfoFactory |
getTypeInfoFactory()
Get the TypeInfoFactory that created this type info |
String |
getTypeVariable()
Gets the type variable if we are a parameterized type which is part of a parameterized type and there is a type variable for this type. |
TypeInfo |
getValueType()
Get the value type if it is a map |
void |
setTypeVariable(String typeVariable)
Set the type variable |
void |
toShortString(org.jboss.util.JBossStringBuilder buffer)
|
protected void |
toString(org.jboss.util.JBossStringBuilder buffer)
|
Methods inherited from class org.jboss.reflect.spi.AbstractTypeInfo |
---|
getAttachment, getAttachment, setAttachment |
Methods inherited from class org.jboss.util.JBossObject |
---|
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, hashCode, list, notEqual, toShortString, toString, toStringImplementation |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jboss.reflect.spi.ClassInfo |
---|
getDeclaredConstructor, getDeclaredConstructors, getDeclaredField, getDeclaredFields, getDeclaredMethod, getDeclaredMethods, getGenericInterfaces, getGenericSuperclass, getInterfaces, getName, getOwnerType, getPackage, getRawType, getSuperclass, isInterface |
Methods inherited from interface org.jboss.reflect.spi.AnnotatedInfo |
---|
getAnnotation, getAnnotations, getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent, isAnnotationPresent |
Methods inherited from interface org.jboss.util.JBossInterface |
---|
clone, toShortString |
Methods inherited from interface org.jboss.reflect.spi.ModifierInfo |
---|
getModifiers, isPublic, isStatic, isVolatile |
Methods inherited from interface org.jboss.reflect.spi.TypeInfo |
---|
convertValue, convertValue, convertValue, getArrayType, getAttachment, getAttachment, getSimpleName, getType, isAnnotation, isArray, isAssignableFrom, isCollection, isEnum, isInstance, isMap, isPrimitive, newArrayInstance, setAttachment |
Constructor Detail |
---|
public JavassistParameterizedClassInfo(JavassistTypeInfoFactoryImpl factory, ClassInfo delegate, ClassLoader classLoader, javassist.bytecode.SignatureAttribute.TypeArgument[] typeArguments, org.jboss.reflect.plugins.javassist.JavassistTypeVariableSpy spy)
factory
- the javassist type info factorydelegate
- the class info containing the parameterized type's raw typeclassLoader
- the class loader to use when lazily loading up the argumentstypeArguments
- the javassist generic type argumentsspy
- used to determine the actual bounds of generic type variables
IllegalArgumentException
- if any of the parameters are nullpublic JavassistParameterizedClassInfo(JavassistTypeInfoFactoryImpl factory, ClassInfo delegate, Type[] reflectTypeArguments)
factory
- the javassist type info factorydelegate
- the class info containing the parameterized type's raw typereflectTypeArguments
- the type infos for the type arguments
IllegalArgumentException
- if any of the parameters are nullMethod Detail |
---|
public void setTypeVariable(String typeVariable)
TypeVariableAware
setTypeVariable
in interface TypeVariableAware
public String getTypeVariable()
ClassInfo
getTypeVariable
in interface ClassInfo
getTypeVariable
in class DelegateClassInfo
public TypeInfoFactory getTypeInfoFactory()
TypeInfo
getTypeInfoFactory
in interface TypeInfo
getTypeInfoFactory
in class DelegateClassInfo
public ClassLoader getClassLoader()
TypeInfo
getClassLoader
in interface TypeInfo
getClassLoader
in class DelegateClassInfo
public TypeInfo[] getActualTypeArguments()
ClassInfo
getActualTypeArguments
in interface ClassInfo
getActualTypeArguments
in class DelegateClassInfo
public TypeInfo getComponentType()
ClassInfo
getComponentType
in interface ClassInfo
getComponentType
in class DelegateClassInfo
public TypeInfo getKeyType()
ClassInfo
getKeyType
in interface ClassInfo
getKeyType
in class DelegateClassInfo
public TypeInfo getValueType()
ClassInfo
getValueType
in interface ClassInfo
getValueType
in class DelegateClassInfo
public void toShortString(org.jboss.util.JBossStringBuilder buffer)
toShortString
in interface org.jboss.util.JBossInterface
toShortString
in class DelegateClassInfo
protected void toString(org.jboss.util.JBossStringBuilder buffer)
toString
in class DelegateClassInfo
public javassist.bytecode.SignatureAttribute.ClassSignature getClassSignature()
public ClassLoader getClassLoaderInternal()
public JavassistTypeInfoFactoryImpl getFactory()
|
JBoss Reflection 2.2.1.SP1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |