public class JavassistEnumInfo extends JavassistTypeInfo implements EnumInfo
| Modifier and Type | Field and Description |
|---|---|
protected HashMap<String,EnumConstantInfo> |
constants
The constants
|
protected EnumConstantInfoImpl[] |
enumConstants
Enumeration constants
|
allAnnotations, allAnnotationsArray, ctClassannotationHelper, annotationMap, annotationsArrayABSTRACT, 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 |
|---|
JavassistEnumInfo(JavassistTypeInfoFactoryImpl factory,
javassist.CtClass ctClass,
Class<? extends Object> clazz)
Create a new JavassistEnumInfo.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
EnumConstantInfo |
getEnumConstant(String name)
Get a constant
|
EnumConstantInfo[] |
getEnumConstants()
Get the constants
|
Object |
getEnumValue(String name)
Get the enum value for a constant
|
int |
hashCode() |
void |
setEnumConstants(EnumConstantInfoImpl[] enumConstants)
Set the enumeration constants
|
convertValue, convertValue, convertValue, generateConstructorInfo, generateConstructorInfo, generateFieldInfo, generateMethodInfo, generateMethodInfo, generateMethodInfo, getActualTypeArguments, getAnnotatedTarget, getAnnotations, getArrayClass, getArrayType, getAttachment, getAttachment, getComponentType, getDeclaredConstructor, getDeclaredConstructors, getDeclaredField, getDeclaredFields, getDeclaredMethod, getDeclaredMethods, getFactory, getGenericInterfaces, getGenericSuperclass, getHashCode, getInterfaces, getKeyType, getModifiers, getName, getOwnerType, getPackage, getParameterTypes, getRawType, getSimpleName, getSuperclass, getSuperHolder, getType, getTypeInfoFactory, getValueType, isAnnotation, isArray, isAssignableFrom, isCollection, isEnum, isInstance, isInterface, isMap, isPrimitive, isPublic, isStatic, isVolatile, newArrayInstance, setAttachment, toShortString, toStringgetAllAnnotations, getAnnotation, getAnnotations, isAnnotationPresent, setupAnnotationsgetUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresentcacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, list, notEqual, toShortString, toString, toStringImplementationfinalize, getClass, notify, notifyAll, wait, wait, waitgetActualTypeArguments, getComponentType, getDeclaredConstructor, getDeclaredConstructors, getDeclaredField, getDeclaredFields, getDeclaredMethod, getDeclaredMethods, getGenericInterfaces, getGenericSuperclass, getInterfaces, getKeyType, getName, getOwnerType, getPackage, getRawType, getSuperclass, getValueType, isInterfacegetAnnotation, getAnnotations, getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent, isAnnotationPresentgetModifiers, isPublic, isStatic, isVolatileconvertValue, convertValue, convertValue, getArrayType, getAttachment, getAttachment, getSimpleName, getType, getTypeInfoFactory, isAnnotation, isArray, isAssignableFrom, isCollection, isEnum, isInstance, isMap, isPrimitive, newArrayInstance, setAttachmentprotected EnumConstantInfoImpl[] enumConstants
protected HashMap<String,EnumConstantInfo> constants
public JavassistEnumInfo(JavassistTypeInfoFactoryImpl factory, javassist.CtClass ctClass, Class<? extends Object> clazz)
factory - the factoryctClass - the ctClassclazz - the classpublic void setEnumConstants(EnumConstantInfoImpl[] enumConstants)
enumConstants - the enumeration constantspublic EnumConstantInfo[] getEnumConstants()
EnumInfogetEnumConstants in interface EnumInfopublic EnumConstantInfo getEnumConstant(String name)
EnumInfogetEnumConstant in interface EnumInfoname - the namepublic Object getEnumValue(String name)
EnumInfogetEnumValue in interface EnumInfoname - the namepublic boolean equals(Object o)
equals in class JavassistTypeInfopublic int hashCode()
hashCode in class org.jboss.util.JBossObjectCopyright © 2016 JBoss by Red Hat. All rights reserved.