org.jboss.reflect.plugins
Class ArrayInfoImpl

java.lang.Object
  extended by org.jboss.util.JBossObject
      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

Field Summary
protected  TypeInfo componentType
          The component type
protected  int hash
          The hash code
 
Fields inherited from class org.jboss.reflect.plugins.ClassInfoImpl
constructors, fieldMap, fields, interfaces, methods, modifiers, name, superclass
 
Fields inherited from class org.jboss.reflect.plugins.InheritableAnnotationHolder
allAnnotations, allAnnotationsArray, annotatedElement, declaredAnnotations, declaredAnnotationsArray, typeInfoFactory
 
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)
           
 TypeInfo getComponentType()
          Get the component type
 String getName()
          Get the class name
 int hashCode()
           
 
Methods inherited from class org.jboss.reflect.plugins.ClassInfoImpl
findMethod, getDeclaredConstructors, getDeclaredField, getDeclaredFields, getDeclaredMethod, getDeclaredMethods, getInterfaces, getModifiers, getSuperclass, getSuperHolder, getType, isInterface, isPublic, isStatic, setDeclaredConstructors, setDeclaredFields, setDeclaredMethods, setInterfaces, setSuperclass, setType, toString
 
Methods inherited from class org.jboss.reflect.plugins.InheritableAnnotationHolder
getAllAnnotations, getAnnotation, getAnnotations, getDeclaredAnnotations, isAnnotationPresent, setAnnotatedElement, setTypeInfoFactory, setupAnnotations
 
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
getDeclaredConstructors, getDeclaredField, getDeclaredFields, getDeclaredMethod, getDeclaredMethods, getInterfaces, getSuperclass, isInterface
 
Methods inherited from interface org.jboss.reflect.spi.AnnotatedInfo
getAnnotation, getAnnotations, isAnnotationPresent
 
Methods inherited from interface org.jboss.util.JBossInterface
clone, toShortString, toShortString
 
Methods inherited from interface org.jboss.reflect.spi.ModifierInfo
getModifiers, isPublic, isStatic
 
Methods inherited from interface org.jboss.reflect.spi.TypeInfo
getType
 

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

getComponentType

public TypeInfo getComponentType()
Description copied from interface: ArrayInfo
Get the component type

Specified by:
getComponentType in interface ArrayInfo
Returns:
the component type

getName

public String getName()
Description copied from interface: ClassInfo
Get the class name

Specified by:
getName in interface ClassInfo
Specified by:
getName in interface TypeInfo
Overrides:
getName in class ClassInfoImpl
Returns:
the name

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



Copyright © 2004 JBoss Inc. All Rights Reserved.