JBoss Reflection 2.2.1.SP1

org.jboss.reflect.plugins
Class ArrayInfoImpl

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.reflect.plugins.AbstractAnnotatedInfo
          extended by org.jboss.reflect.plugins.InheritableAnnotationHolder
              extended by org.jboss.reflect.plugins.ClassInfoImpl
                  extended by org.jboss.reflect.plugins.ArrayInfoImpl
All Implemented Interfaces:
Serializable, Cloneable, AnnotatedInfo, ArrayInfo, ClassInfo, ModifierInfo, TypeInfo, org.jboss.util.JBossInterface

public class ArrayInfoImpl
extends ClassInfoImpl
implements ArrayInfo

Array information

Author:
Bill Burke, Adrian Brock
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.reflect.plugins.ClassInfoImpl
ClassInfoImpl.MarshalledClassInfo
 
Field Summary
protected  TypeInfo componentType
          The component type
protected  int hash
          The hash code
 
Fields inherited from class org.jboss.reflect.plugins.ClassInfoImpl
classInfoHelper, constructors, fieldMap, fields, genericInterfaces, genericSuperclass, interfaces, methods, modifiers, name, packageInfo, superclass, typeInfoFactory, UNKNOWN_CLASS, UNKNOWN_CLASSES, UNKNOWN_CONSTRUCTORS, UNKNOWN_FIELDS, UNKNOWN_INTERFACES, UNKNOWN_METHODS, UNKNOWN_TYPE, UNKNOWN_TYPES
 
Fields inherited from class org.jboss.reflect.plugins.InheritableAnnotationHolder
allAnnotations, allAnnotationsArray, annotatedElement, annotationHelper, declaredAnnotations, declaredAnnotationsArray
 
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
ArrayInfoImpl()
          Create a new ArrayInfo.
ArrayInfoImpl(TypeInfo componentType)
          Create a new ArrayInfo.
 
Method Summary
protected  void calculateHash()
          Calculate the hash code
 boolean equals(Object o)
           
 AnnotationValue getAnnotation(String annotationName)
          Get an annotation
 AnnotationValue[] getAnnotations()
          Get the annotations
 TypeInfo getComponentType()
          Get the component type if it is a collection or an array
 Class<? extends Object> getType()
          Deprecated. 
 int hashCode()
           
 boolean isAnnotationPresent(String annotationName)
          Test whether an annotation is present
 
Methods inherited from class org.jboss.reflect.plugins.ClassInfoImpl
convertValue, convertValue, convertValue, findConstructor, findMethod, getActualTypeArguments, getArrayClass, getArrayType, getAttachment, getAttachment, getClassLoader, getDeclaredConstructor, getDeclaredConstructors, getDeclaredField, getDeclaredFields, getDeclaredMethod, getDeclaredMethods, getGenericInterfaces, getGenericSuperclass, getInterfaces, getKeyType, getModifiers, getName, getOwnerType, getPackage, getRawType, getSimpleName, getSuperclass, getSuperHolder, getTypeInfoFactory, getTypeVariable, getValueType, isAnnotation, isArray, isAssignableFrom, isCollection, isEnum, isInstance, isInterface, isMap, isPrimitive, isPublic, isStatic, isVolatile, newArrayInstance, setAttachment, setClassInfoHelper, setDeclaredConstructors, setDeclaredFields, setDeclaredMethods, setGenericInterfaces, setGenericSuperclass, setInterfaces, setType, setTypeInfoFactory, toString, writeReplace
 
Methods inherited from class org.jboss.reflect.plugins.InheritableAnnotationHolder
getAllAnnotations, getDeclaredAnnotation, getDeclaredAnnotations, isDeclaredAnnotationPresent, setAnnotatedElement, setAnnotationHelper, setupAnnotations
 
Methods inherited from class org.jboss.reflect.plugins.AbstractAnnotatedInfo
getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent
 
Methods inherited from class org.jboss.util.JBossObject
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, list, notEqual, toShortString, 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
getActualTypeArguments, getDeclaredConstructor, getDeclaredConstructors, getDeclaredField, getDeclaredFields, getDeclaredMethod, getDeclaredMethods, getGenericInterfaces, getGenericSuperclass, getInterfaces, getKeyType, getName, getOwnerType, getPackage, getRawType, getSuperclass, getTypeVariable, getValueType, isInterface
 
Methods inherited from interface org.jboss.reflect.spi.AnnotatedInfo
getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent
 
Methods inherited from interface org.jboss.util.JBossInterface
clone, toShortString, 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, getClassLoader, getSimpleName, getTypeInfoFactory, isAnnotation, isArray, isAssignableFrom, isCollection, isEnum, isInstance, isMap, isPrimitive, newArrayInstance, setAttachment
 

Field Detail

componentType

protected TypeInfo componentType
The component type


hash

protected int hash
The hash code

Constructor Detail

ArrayInfoImpl

public ArrayInfoImpl()
Create a new ArrayInfo.


ArrayInfoImpl

public ArrayInfoImpl(TypeInfo componentType)
Create a new ArrayInfo.

Parameters:
componentType - the component type
Method Detail

getType

@Deprecated
public Class<? extends Object> getType()
Deprecated. 

Description copied from interface: TypeInfo
Get the class

Specified by:
getType in interface TypeInfo
Overrides:
getType in class ClassInfoImpl
Returns:
the class

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 ArrayInfo
Specified by:
getComponentType in interface ClassInfo
Overrides:
getComponentType in class ClassInfoImpl
Returns:
the component type

getAnnotation

public AnnotationValue getAnnotation(String annotationName)
Description copied from interface: AnnotatedInfo
Get an annotation

Specified by:
getAnnotation in interface AnnotatedInfo
Overrides:
getAnnotation in class ClassInfoImpl
Parameters:
annotationName - the name
Returns:
the annotation or null if it is not there

getAnnotations

public AnnotationValue[] getAnnotations()
Description copied from interface: AnnotatedInfo
Get the annotations

Specified by:
getAnnotations in interface AnnotatedInfo
Overrides:
getAnnotations in class ClassInfoImpl
Returns:
the annotations. If there are no annotations a zero length array is returned

isAnnotationPresent

public boolean isAnnotationPresent(String annotationName)
Description copied from interface: AnnotatedInfo
Test whether an annotation is present

Specified by:
isAnnotationPresent in interface AnnotatedInfo
Overrides:
isAnnotationPresent in class ClassInfoImpl
Parameters:
annotationName - the name
Returns:
true when the annotation is present

equals

public boolean equals(Object o)
Overrides:
equals in class ClassInfoImpl

hashCode

public int hashCode()
Overrides:
hashCode in class ClassInfoImpl

calculateHash

protected void calculateHash()
Calculate the hash code


JBoss Reflection 2.2.1.SP1

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