org.jboss.reflect.plugins
Class EnumInfoImpl

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.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

Field Summary
protected  HashMap constants
          The constants
protected  EnumConstantInfoImpl[] enumConstants
          Enumeration constants
 
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
EnumInfoImpl()
          Create a new EnumInfo.
EnumInfoImpl(String name, int modifiers)
          Create a new EnumInfo.
 
Method Summary
 EnumConstantInfo getEnumConstant(String name)
          Get a constant
 EnumConstantInfo[] getEnumConstants()
          Get the constants
 void setEnumConstants(EnumConstantInfoImpl[] enumConstants)
          Set the enumeration constants
 
Methods inherited from class org.jboss.reflect.plugins.ClassInfoImpl
equals, findMethod, getDeclaredConstructors, getDeclaredField, getDeclaredFields, getDeclaredMethod, getDeclaredMethods, getInterfaces, getModifiers, getName, getSuperclass, getSuperHolder, getType, hashCode, 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, getName, 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

enumConstants

protected EnumConstantInfoImpl[] enumConstants
Enumeration constants


constants

protected HashMap 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 name)
Description copied from interface: EnumInfo
Get a constant

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


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.