org.jboss.reflect.plugins.bytecode
Class BytecodeEnumInfo
java.lang.Object
org.jboss.util.JBossObject
org.jboss.reflect.plugins.AbstractAnnotatedInfo
org.jboss.reflect.plugins.bytecode.BytecodeAnnotatedInfo
org.jboss.reflect.plugins.bytecode.BytecodeInheritableAnnotationHolder
org.jboss.reflect.plugins.bytecode.BytecodeTypeInfo
org.jboss.reflect.plugins.bytecode.BytecodeEnumInfo
- All Implemented Interfaces:
- Serializable, Cloneable, AnnotatedInfo, ClassInfo, EnumInfo, InterfaceInfo, ModifierInfo, TypeInfo, org.jboss.util.JBossInterface
public class BytecodeEnumInfo
- extends BytecodeTypeInfo
- implements EnumInfo
- Version:
- $Revision: 103926 $
- Author:
- Kabir Khan
- See Also:
- Serialized Form
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 |
Methods inherited from class org.jboss.reflect.plugins.bytecode.BytecodeTypeInfo |
convertValue, convertValue, convertValue, generateConstructorInfo, generateConstructorInfo, generateFieldInfo, generateMethodInfo, generateMethodInfo, getActualTypeArguments, getAnnotations, getArrayClass, getArrayType, getAttachment, getAttachment, getClassBytes, getClassLoader, getClassLoaderInternal, getClassSignature, getComponentType, getDeclaredConstructor, getDeclaredConstructor, getDeclaredConstructor, getDeclaredConstructors, getDeclaredField, getDeclaredFields, getDeclaredMethod, getDeclaredMethod, getDeclaredMethod, getDeclaredMethods, getFactory, getGenericInterfaces, getGenericSuperclass, getHashCode, getInterfaces, getKeyType, getModifiers, getName, getOwnerType, getPackage, getPackageName, getPackageName, getRawType, getSimpleName, getSuperclass, getSuperHolder, getType, getTypeInfoFactory, getTypeVariable, getValueType, isAnnotation, isArray, isAssignableFrom, isCollection, isEnum, isInstance, isInterface, isMap, isPrimitive, isPublic, isStatic, isVolatile, newArrayInstance, setAttachment, toShortString, toString, writeReplace |
Methods inherited from class org.jboss.util.JBossObject |
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, list, notEqual, toShortString, toString, toStringImplementation |
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.util.JBossInterface |
clone, toShortString, toShortString |
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 |
enumConstants
protected volatile EnumConstantInfoImpl[] enumConstants
- Enumeration constants
constants
protected volatile Map<String,EnumConstantInfo> constants
- The constants
BytecodeEnumInfo
public BytecodeEnumInfo(BytecodeTypeInfoFactoryImpl factory,
String name,
ClassBytes classBytes,
Class<? extends Object> clazz)
- Create a new JavassistEnumInfo.
- Parameters:
factory
- the factoryctClass
- the ctClassclazz
- the class
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
getEnumValue
public Object getEnumValue(String name)
- Description copied from interface:
EnumInfo
- Get the enum value for a constant
- Specified by:
getEnumValue
in interface EnumInfo
- Parameters:
name
- the name
- Returns:
- the value
equals
public boolean equals(Object o)
- Overrides:
equals
in class BytecodeTypeInfo
hashCode
public int hashCode()
- Overrides:
hashCode
in class org.jboss.util.JBossObject
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.