JBoss Reflection 2.2.1.SP1

org.jboss.reflect.plugins
Class EnumInfoImpl

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.EnumInfoImpl
All Implemented Interfaces:
Serializable, Cloneable, AnnotatedInfo, ClassInfo, EnumInfo, ModifierInfo, TypeInfo, org.jboss.util.JBossInterface

public class EnumInfoImpl
extends ClassInfoImpl
implements EnumInfo

Enumeration info

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  HashMap<String,EnumConstantInfo> constants
          The constants
protected  EnumConstantInfoImpl[] enumConstants
          Enumeration constants
 
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
EnumInfoImpl()
          Create a new EnumInfo.
EnumInfoImpl(String name, int modifiers)
          Create a new EnumInfo.
 
Method Summary
 boolean equals(Object o)
           
 EnumConstantInfo getEnumConstant(String enumName)
          Get a constant
 EnumConstantInfo[] getEnumConstants()
          Get the constants
 Object getEnumValue(String enumName)
          Get the enum value for a constant
 void setEnumConstants(EnumConstantInfoImpl[] enumConstants)
          Set the enumeration constants
 
Methods inherited from class org.jboss.reflect.plugins.ClassInfoImpl
convertValue, convertValue, convertValue, findConstructor, findMethod, getActualTypeArguments, getAnnotation, getAnnotations, getArrayClass, getArrayType, getAttachment, getAttachment, getClassLoader, getComponentType, getDeclaredConstructor, getDeclaredConstructors, getDeclaredField, getDeclaredFields, getDeclaredMethod, getDeclaredMethods, getGenericInterfaces, getGenericSuperclass, getInterfaces, getKeyType, getModifiers, getName, getOwnerType, getPackage, getRawType, getSimpleName, getSuperclass, getSuperHolder, getType, getTypeInfoFactory, getTypeVariable, getValueType, hashCode, isAnnotation, isAnnotationPresent, 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, getComponentType, 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
getAnnotation, getAnnotations, getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent, 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, getType, getTypeInfoFactory, isAnnotation, isArray, isAssignableFrom, isCollection, isEnum, isInstance, isMap, isPrimitive, newArrayInstance, setAttachment
 

Field Detail

enumConstants

protected EnumConstantInfoImpl[] enumConstants
Enumeration constants


constants

protected HashMap<String,EnumConstantInfo> constants
The constants

Constructor Detail

EnumInfoImpl

public EnumInfoImpl()
Create a new EnumInfo.


EnumInfoImpl

public EnumInfoImpl(String name,
                    int modifiers)
Create a new EnumInfo.

Parameters:
name - the enumeration name
modifiers - the modifiers
Method Detail

setEnumConstants

public void setEnumConstants(EnumConstantInfoImpl[] enumConstants)
Set the enumeration constants

Parameters:
enumConstants - the enumeration constants

getEnumConstants

public EnumConstantInfo[] getEnumConstants()
Description copied from interface: EnumInfo
Get the constants

Specified by:
getEnumConstants in interface EnumInfo
Returns:
the constants

getEnumConstant

public EnumConstantInfo getEnumConstant(String enumName)
Description copied from interface: EnumInfo
Get a constant

Specified by:
getEnumConstant in interface EnumInfo
Parameters:
enumName - the name
Returns:
the constant

getEnumValue

public Object getEnumValue(String enumName)
Description copied from interface: EnumInfo
Get the enum value for a constant

Specified by:
getEnumValue in interface EnumInfo
Parameters:
enumName - the name
Returns:
the value

equals

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

JBoss Reflection 2.2.1.SP1

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