public class EnumInfoImpl extends ClassInfoImpl implements EnumInfo
ClassInfoImpl.MarshalledClassInfo
Modifier and Type | Field and Description |
---|---|
protected HashMap<String,EnumConstantInfo> |
constants
The constants
|
protected EnumConstantInfoImpl[] |
enumConstants
Enumeration constants
|
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
allAnnotations, allAnnotationsArray, annotatedElement, annotationHelper, declaredAnnotations, declaredAnnotationsArray
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 and Description |
---|
EnumInfoImpl()
Create a new EnumInfo.
|
EnumInfoImpl(String name,
int modifiers)
Create a new EnumInfo.
|
Modifier and Type | Method and Description |
---|---|
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
|
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
getAllAnnotations, getDeclaredAnnotation, getDeclaredAnnotations, isDeclaredAnnotationPresent, setAnnotatedElement, setAnnotationHelper, setupAnnotations
getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, list, notEqual, toShortString, toShortString, toString, toStringImplementation
finalize, getClass, notify, notifyAll, wait, wait, wait
getActualTypeArguments, getComponentType, getDeclaredConstructor, getDeclaredConstructors, getDeclaredField, getDeclaredFields, getDeclaredMethod, getDeclaredMethods, getGenericInterfaces, getGenericSuperclass, getInterfaces, getKeyType, getName, getOwnerType, getPackage, getRawType, getSuperclass, getTypeVariable, getValueType, isInterface
getAnnotation, getAnnotations, getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent, isAnnotationPresent
getModifiers, isPublic, isStatic, isVolatile
convertValue, convertValue, convertValue, getArrayType, getAttachment, getAttachment, getClassLoader, getSimpleName, getType, getTypeInfoFactory, isAnnotation, isArray, isAssignableFrom, isCollection, isEnum, isInstance, isMap, isPrimitive, newArrayInstance, setAttachment
protected EnumConstantInfoImpl[] enumConstants
protected HashMap<String,EnumConstantInfo> constants
public EnumInfoImpl()
public EnumInfoImpl(String name, int modifiers)
name
- the enumeration namemodifiers
- the modifierspublic void setEnumConstants(EnumConstantInfoImpl[] enumConstants)
enumConstants
- the enumeration constantspublic EnumConstantInfo[] getEnumConstants()
EnumInfo
getEnumConstants
in interface EnumInfo
public EnumConstantInfo getEnumConstant(String enumName)
EnumInfo
getEnumConstant
in interface EnumInfo
enumName
- the namepublic Object getEnumValue(String enumName)
EnumInfo
getEnumValue
in interface EnumInfo
enumName
- the namepublic boolean equals(Object o)
equals
in class ClassInfoImpl
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.