|
JBoss Reflection 2.2.1.SP1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.util.JBossObject
org.jboss.reflect.plugins.AbstractAnnotatedInfo
org.jboss.reflect.plugins.javassist.JavassistAnnotatedInfo
org.jboss.reflect.plugins.javassist.JavassistInheritableAnnotationHolder
org.jboss.reflect.plugins.javassist.JavassistTypeInfo
org.jboss.reflect.plugins.javassist.JavassistEnumInfo
public class JavassistEnumInfo
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jboss.reflect.plugins.javassist.JavassistTypeInfo |
---|
JavassistTypeInfo.MarshalledClassInfo |
Field Summary | |
---|---|
protected Map<String,EnumConstantInfo> |
constants
The constants |
protected EnumConstantInfoImpl[] |
enumConstants
Enumeration constants |
Fields inherited from class org.jboss.reflect.plugins.javassist.JavassistTypeInfo |
---|
GET_CLASSLOADER_PERMISSION |
Fields inherited from class org.jboss.reflect.plugins.javassist.JavassistInheritableAnnotationHolder |
---|
allAnnotations, allAnnotationsArray, ctClass, initialized |
Fields inherited from class org.jboss.reflect.plugins.javassist.JavassistAnnotatedInfo |
---|
annotationHelper, annotationMap, annotationsArray |
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 | |
---|---|
JavassistEnumInfo(JavassistTypeInfoFactoryImpl factory,
javassist.CtClass ctClass,
Class<? extends Object> clazz)
Create a new JavassistEnumInfo. |
Method Summary | |
---|---|
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 |
Methods inherited from class org.jboss.reflect.plugins.javassist.JavassistInheritableAnnotationHolder |
---|
getAllAnnotations, getAnnotation, getAnnotations, isAnnotationPresent, 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, list, notEqual, 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 |
---|
protected volatile EnumConstantInfoImpl[] enumConstants
protected volatile Map<String,EnumConstantInfo> constants
Constructor Detail |
---|
public JavassistEnumInfo(JavassistTypeInfoFactoryImpl factory, javassist.CtClass ctClass, Class<? extends Object> clazz)
factory
- the factoryctClass
- the ctClassclazz
- the classMethod Detail |
---|
public 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 name
public Object getEnumValue(String name)
EnumInfo
getEnumValue
in interface EnumInfo
name
- the name
public boolean equals(Object o)
equals
in class JavassistTypeInfo
public int hashCode()
hashCode
in class org.jboss.util.JBossObject
|
JBoss Reflection 2.2.1.SP1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |