public class JavassistEnumInfo extends JavassistTypeInfo implements EnumInfo
JavassistTypeInfo.MarshalledClassInfo
Modifier and Type | Field and Description |
---|---|
protected Map<String,EnumConstantInfo> |
constants
The constants
|
protected EnumConstantInfoImpl[] |
enumConstants
Enumeration constants
|
GET_CLASSLOADER_PERMISSION
allAnnotations, allAnnotationsArray, ctClass, initialized
annotationHelper, annotationMap, annotationsArray
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 |
---|
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
|
addConstructor, addField, addMethod, clearConstructorCache, clearFieldCache, clearMethodCache, convertValue, convertValue, convertValue, createMutableConstructor, createMutableConstructor, createMutableConstructor, createMutableConstructor, createMutableConstructor, createMutableField, createMutableField, createMutableMethod, createMutableMethod, createMutableMethod, createMutableMethod, createMutableMethod, generateConstructorInfo, generateConstructorInfo, generateFieldInfo, generateMethodInfo, generateMethodInfo, generateMethodInfo, getActualTypeArguments, getAnnotatedTarget, getAnnotations, getArrayClass, getArrayType, getAttachment, getAttachment, getClassLoader, getClassLoaderInternal, getClassSignature, getComponentType, getDeclaredConstructor, getDeclaredConstructor, getDeclaredConstructor, getDeclaredConstructors, getDeclaredField, getDeclaredFields, getDeclaredMethod, getDeclaredMethod, getDeclaredMethod, getDeclaredMethods, getFactory, getGenericInterfaces, getGenericSuperclass, getHashCode, getInterfaces, getKeyType, getModifiers, getName, getOwnerType, getPackage, getParameterTypes, getRawType, getSimpleName, getSuperclass, getSuperHolder, getType, getTypeInfoFactory, getTypeVariable, getValueType, isAnnotation, isArray, isAssignableFrom, isCollection, isEnum, isInstance, isInterface, isMap, isPrimitive, isPublic, isStatic, isVolatile, newArrayInstance, removeConstructor, removeField, removeMethod, setAttachment, toByteCode, toShortString, toString, writeReplace
getAllAnnotations, getAnnotation, getAnnotations, isAnnotationPresent, setupAnnotations
getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, list, notEqual, 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 volatile EnumConstantInfoImpl[] enumConstants
protected volatile Map<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()
EnumInfo
getEnumConstants
in interface EnumInfo
public EnumConstantInfo getEnumConstant(String name)
EnumInfo
getEnumConstant
in interface EnumInfo
name
- the namepublic Object getEnumValue(String name)
EnumInfo
getEnumValue
in interface EnumInfo
name
- the namepublic boolean equals(Object o)
equals
in class JavassistTypeInfo
public int hashCode()
hashCode
in class org.jboss.util.JBossObject
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.