public class EnumConstantInfoImpl extends AnnotationHolder implements EnumConstantInfo
| Modifier and Type | Field and Description |
|---|---|
protected EnumInfo |
declaring
The enumeration
|
protected int |
hash
The hash code
|
protected String |
name
The constant name
|
annotationMap, annotationsArray| Constructor and Description |
|---|
EnumConstantInfoImpl()
Create a new constant
|
EnumConstantInfoImpl(String name,
EnumInfo declaring)
Create a new constant
|
EnumConstantInfoImpl(String name,
EnumInfo declaring,
AnnotationValue[] annotations)
Create a new constant
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
EnumInfo |
getDeclaring()
Get the declaring enumeration
|
int |
getHashCode() |
String |
getName()
Get the name
|
Object |
getValue()
Get the value
|
void |
toShortString(org.jboss.util.JBossStringBuilder buffer) |
protected void |
toString(org.jboss.util.JBossStringBuilder buffer) |
getAnnotation, getAnnotations, isAnnotationPresent, setupAnnotationsgetUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresentcacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, hashCode, list, notEqual, toShortString, toString, toStringImplementationfinalize, getClass, notify, notifyAll, wait, wait, waitgetAnnotation, getAnnotations, getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent, isAnnotationPresentprotected String name
protected EnumInfo declaring
protected int hash
public EnumConstantInfoImpl()
public EnumConstantInfoImpl(String name, EnumInfo declaring)
name - the namedeclaring - the enumerationpublic EnumConstantInfoImpl(String name, EnumInfo declaring, AnnotationValue[] annotations)
name - the namedeclaring - the enumerationannotations - the annotationspublic String getName()
EnumConstantInfogetName in interface EnumConstantInfopublic EnumInfo getDeclaring()
EnumConstantInfogetDeclaring in interface EnumConstantInfopublic Object getValue()
EnumConstantInfogetValue in interface EnumConstantInfopublic int getHashCode()
getHashCode in class org.jboss.util.JBossObjectpublic void toShortString(org.jboss.util.JBossStringBuilder buffer)
toShortString in interface org.jboss.util.JBossInterfacetoShortString in class org.jboss.util.JBossObjectprotected void toString(org.jboss.util.JBossStringBuilder buffer)
toString in class org.jboss.util.JBossObjectCopyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.