org.jboss.reflect.plugins.introspection
Class ParameterizedClassInfo

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.reflect.spi.AbstractTypeInfo
          extended by org.jboss.reflect.spi.DelegateClassInfo
              extended by org.jboss.reflect.plugins.introspection.ParameterizedClassInfo
All Implemented Interfaces:
Serializable, Cloneable, AnnotatedInfo, ClassInfo, InterfaceInfo, ModifierInfo, TypeInfo, org.jboss.util.JBossInterface
Direct Known Subclasses:
ParameterizedArrayInfo

public class ParameterizedClassInfo
extends DelegateClassInfo

ParameterizedClassInfo.

Version:
$Revision: 1.1 $
Author:
Adrian Brock
See Also:
Serialized Form

Field Summary
protected  IntrospectionTypeInfoFactoryImpl factory
          The factory
 
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
ParameterizedClassInfo(IntrospectionTypeInfoFactoryImpl factory, ClassInfo delegate, ParameterizedType parameterizedType)
          Create a new ParameterizedClassInfo.
 
Method Summary
 TypeInfo[] getActualTypeArguments()
          Get the actual type parameters
 TypeInfo getComponentType()
          Get the component type if it is a collection or an array
 TypeInfo getKeyType()
          Get the key type if it is a map
 TypeInfo getOwnerType()
          Get the owner type
 ClassInfo getRawType()
          Get the raw type
 TypeInfoFactory getTypeInfoFactory()
          Get the TypeInfoFactory that created this type info
 TypeInfo getValueType()
          Get the value type if it is a map
 void toShortString(org.jboss.util.JBossStringBuilder buffer)
           
protected  void toString(org.jboss.util.JBossStringBuilder buffer)
           
 
Methods inherited from class org.jboss.reflect.spi.DelegateClassInfo
convertValue, convertValue, convertValue, equals, getAnnotation, getAnnotations, getArrayType, getDeclaredConstructor, getDeclaredConstructors, getDeclaredField, getDeclaredFields, getDeclaredMethod, getDeclaredMethods, getGenericInterfaces, getGenericSuperclass, getHashCode, getInterfaces, getModifiers, getName, getPackage, getSimpleName, getSuperclass, getType, getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotation, isAnnotationPresent, isAnnotationPresent, isArray, isAssignableFrom, isCollection, isEnum, isInitialized, isInstance, isInterface, isMap, isPrimitive, isPublic, isStatic, isVolatile, newArrayInstance, setDelegate, setDelegate
 
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.util.JBossInterface
clone, toShortString
 
Methods inherited from interface org.jboss.reflect.spi.TypeInfo
getAttachment, getAttachment, setAttachment
 

Field Detail

factory

protected transient IntrospectionTypeInfoFactoryImpl factory
The factory

Constructor Detail

ParameterizedClassInfo

public ParameterizedClassInfo(IntrospectionTypeInfoFactoryImpl factory,
                              ClassInfo delegate,
                              ParameterizedType parameterizedType)
Create a new ParameterizedClassInfo.

Parameters:
factory - the factory
delegate - the raw array info
parameterizedType - the parameterized type
Method Detail

getTypeInfoFactory

public TypeInfoFactory getTypeInfoFactory()
Description copied from interface: TypeInfo
Get the TypeInfoFactory that created this type info

Specified by:
getTypeInfoFactory in interface TypeInfo
Overrides:
getTypeInfoFactory in class DelegateClassInfo
Returns:
type info factory

getActualTypeArguments

public TypeInfo[] getActualTypeArguments()
Description copied from interface: ClassInfo
Get the actual type parameters

Specified by:
getActualTypeArguments in interface ClassInfo
Overrides:
getActualTypeArguments in class DelegateClassInfo
Returns:
the type parameters

getOwnerType

public TypeInfo getOwnerType()
Description copied from interface: ClassInfo
Get the owner type

Specified by:
getOwnerType in interface ClassInfo
Overrides:
getOwnerType in class DelegateClassInfo
Returns:
the owner type

getRawType

public ClassInfo getRawType()
Description copied from interface: ClassInfo
Get the raw type

Specified by:
getRawType in interface ClassInfo
Overrides:
getRawType in class DelegateClassInfo
Returns:
the raw type

getComponentType

public TypeInfo getComponentType()
Description copied from interface: ClassInfo
Get the component type if it is a collection or an array

Specified by:
getComponentType in interface ClassInfo
Overrides:
getComponentType in class DelegateClassInfo
Returns:
the component type

getKeyType

public TypeInfo getKeyType()
Description copied from interface: ClassInfo
Get the key type if it is a map

Specified by:
getKeyType in interface ClassInfo
Overrides:
getKeyType in class DelegateClassInfo
Returns:
the key type

getValueType

public TypeInfo getValueType()
Description copied from interface: ClassInfo
Get the value type if it is a map

Specified by:
getValueType in interface ClassInfo
Overrides:
getValueType in class DelegateClassInfo
Returns:
the value type

toShortString

public void toShortString(org.jboss.util.JBossStringBuilder buffer)
Specified by:
toShortString in interface org.jboss.util.JBossInterface
Overrides:
toShortString in class DelegateClassInfo

toString

protected void toString(org.jboss.util.JBossStringBuilder buffer)
Overrides:
toString in class DelegateClassInfo


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.