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, setupAnnotations
getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, hashCode, list, notEqual, toShortString, toString, toStringImplementation
finalize, getClass, notify, notifyAll, wait, wait, wait
getAnnotation, getAnnotations, getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent, isAnnotationPresent
protected 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()
EnumConstantInfo
getName
in interface EnumConstantInfo
public EnumInfo getDeclaring()
EnumConstantInfo
getDeclaring
in interface EnumConstantInfo
public Object getValue()
EnumConstantInfo
getValue
in interface EnumConstantInfo
public int getHashCode()
getHashCode
in class org.jboss.util.JBossObject
public void toShortString(org.jboss.util.JBossStringBuilder buffer)
toShortString
in interface org.jboss.util.JBossInterface
toShortString
in class org.jboss.util.JBossObject
protected void toString(org.jboss.util.JBossStringBuilder buffer)
toString
in class org.jboss.util.JBossObject
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.