JBoss Reflection 2.2.1.SP1

org.jboss.reflect.spi
Interface EnumInfo

All Superinterfaces:
AnnotatedInfo, ClassInfo, Cloneable, org.jboss.util.JBossInterface, ModifierInfo, Serializable, TypeInfo
All Known Implementing Classes:
BytecodeEnumInfo, EnumInfoImpl, JavassistEnumInfo

public interface EnumInfo
extends ClassInfo

Enumeration info

Author:
Bill Burke, Adrian Brock

Field Summary
 
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
 
Method Summary
 EnumConstantInfo getEnumConstant(String name)
          Get a constant
 EnumConstantInfo[] getEnumConstants()
          Get the constants
 Object getEnumValue(String name)
          Get the enum value for a constant
 
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
 

Method Detail

getEnumConstants

EnumConstantInfo[] getEnumConstants()
Get the constants

Returns:
the constants

getEnumConstant

EnumConstantInfo getEnumConstant(String name)
Get a constant

Parameters:
name - the name
Returns:
the constant

getEnumValue

Object getEnumValue(String name)
Get the enum value for a constant

Parameters:
name - the name
Returns:
the value

JBoss Reflection 2.2.1.SP1

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.