JBoss Reflection 2.2.1.SP1

org.jboss.reflect.plugins.bytecode
Class BytecodeArrayInfoImpl

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.reflect.plugins.AbstractAnnotatedInfo
          extended by org.jboss.reflect.plugins.bytecode.BytecodeAnnotatedInfo
              extended by org.jboss.reflect.plugins.bytecode.BytecodeInheritableAnnotationHolder
                  extended by org.jboss.reflect.plugins.bytecode.BytecodeTypeInfo
                      extended by org.jboss.reflect.plugins.bytecode.BytecodeArrayInfoImpl
All Implemented Interfaces:
Serializable, Cloneable, AnnotatedInfo, ArrayInfo, ClassInfo, InterfaceInfo, ModifierInfo, TypeInfo, org.jboss.util.JBossInterface

public class BytecodeArrayInfoImpl
extends BytecodeTypeInfo
implements ArrayInfo

Javassist array info

Version:
$Revision: 103926 $
Author:
Kabir Khan
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.reflect.plugins.bytecode.BytecodeTypeInfo
BytecodeTypeInfo.MarshalledClassInfo
 
Field Summary
protected  TypeInfo componentType
          The component type
protected  int hash
          The hash code
 
Fields inherited from class org.jboss.reflect.plugins.bytecode.BytecodeTypeInfo
clazz, GET_CLASSLOADER_PERMISSION
 
Fields inherited from class org.jboss.reflect.plugins.bytecode.BytecodeInheritableAnnotationHolder
allAnnotations, allAnnotationsArray, classBytes, initialized
 
Fields inherited from class org.jboss.reflect.plugins.bytecode.BytecodeAnnotatedInfo
annotationHelper, annotationMap, annotationsArray
 
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
 
Method Summary
protected  int calculateHash()
          Calculate the hash code
 boolean equals(Object o)
           
 AnnotationValue getAnnotation(String name)
          Get an annotation
 AnnotationValue[] getAnnotations()
          Get the annotations
 TypeInfo getComponentType()
          Get the component type if it is a collection or an array
 InterfaceInfo[] getGenericInterfaces()
          Get the generic interfaces
 InterfaceInfo[] getInterfaces()
          Get the interfaces
 int getModifiers()
          Get the modifiers
protected  String getPackageName()
           
 Class<? extends Object> getType()
          Get the class
 int hashCode()
           
 boolean isAnnotationPresent(String name)
          Test whether an annotation is present
 boolean isArray()
          Whether this type is an array
 
Methods inherited from class org.jboss.reflect.plugins.bytecode.BytecodeTypeInfo
convertValue, convertValue, convertValue, generateConstructorInfo, generateConstructorInfo, generateFieldInfo, generateMethodInfo, generateMethodInfo, getActualTypeArguments, getArrayClass, getArrayType, getAttachment, getAttachment, getClassBytes, getClassLoader, getClassLoaderInternal, getClassSignature, getDeclaredConstructor, getDeclaredConstructor, getDeclaredConstructor, getDeclaredConstructors, getDeclaredField, getDeclaredFields, getDeclaredMethod, getDeclaredMethod, getDeclaredMethod, getDeclaredMethods, getFactory, getGenericSuperclass, getHashCode, getKeyType, getName, getOwnerType, getPackage, getPackageName, getRawType, getSimpleName, getSuperclass, getSuperHolder, getTypeInfoFactory, getTypeVariable, getValueType, isAnnotation, isAssignableFrom, isCollection, isEnum, isInstance, isInterface, isMap, isPrimitive, isPublic, isStatic, isVolatile, newArrayInstance, setAttachment, toShortString, toString, writeReplace
 
Methods inherited from class org.jboss.reflect.plugins.bytecode.BytecodeInheritableAnnotationHolder
getAllAnnotations, getAnnotations, 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, 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
getActualTypeArguments, getDeclaredConstructor, getDeclaredConstructors, getDeclaredField, getDeclaredFields, getDeclaredMethod, getDeclaredMethods, getGenericSuperclass, 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
isPublic, isStatic, isVolatile
 
Methods inherited from interface org.jboss.reflect.spi.TypeInfo
convertValue, convertValue, convertValue, getArrayType, getAttachment, getAttachment, getClassLoader, getSimpleName, getTypeInfoFactory, isAnnotation, isAssignableFrom, isCollection, isEnum, isInstance, isMap, isPrimitive, newArrayInstance, setAttachment
 

Field Detail

componentType

protected final TypeInfo componentType
The component type


hash

protected final int hash
The hash code

Method Detail

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 BytecodeTypeInfo
Returns:
the component type

getAnnotation

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

Specified by:
getAnnotation in interface AnnotatedInfo
Overrides:
getAnnotation in class BytecodeInheritableAnnotationHolder
Parameters:
name - 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 BytecodeTypeInfo
Returns:
the annotations. If there are no annotations a zero length array is returned

isAnnotationPresent

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

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

isArray

public boolean isArray()
Description copied from interface: TypeInfo
Whether this type is an array

Specified by:
isArray in interface TypeInfo
Overrides:
isArray in class BytecodeTypeInfo
Returns:
true when an array

getPackageName

protected String getPackageName()
Overrides:
getPackageName in class BytecodeTypeInfo

getType

public Class<? extends Object> getType()
Description copied from interface: TypeInfo
Get the class

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

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class org.jboss.util.JBossObject

calculateHash

protected int calculateHash()
Calculate the hash code


getGenericInterfaces

public InterfaceInfo[] getGenericInterfaces()
Description copied from interface: ClassInfo
Get the generic interfaces

Specified by:
getGenericInterfaces in interface ClassInfo
Overrides:
getGenericInterfaces in class BytecodeTypeInfo
Returns:
the generic interfaces

getInterfaces

public InterfaceInfo[] getInterfaces()
Description copied from interface: ClassInfo
Get the interfaces

Specified by:
getInterfaces in interface ClassInfo
Overrides:
getInterfaces in class BytecodeTypeInfo
Returns:
the interfaces

getModifiers

public int getModifiers()
Description copied from interface: ModifierInfo
Get the modifiers

Specified by:
getModifiers in interface ModifierInfo
Overrides:
getModifiers in class BytecodeTypeInfo
Returns:
the modifiers

JBoss Reflection 2.2.1.SP1

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