|
||||||||||
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.AnnotationHolder
org.jboss.reflect.plugins.EnumConstantInfoImpl
public class EnumConstantInfoImpl
An enumeration constant
Field Summary | |
---|---|
protected EnumInfo |
declaring
The enumeration |
protected int |
hash
The hash code |
protected String |
name
The constant name |
Fields inherited from class org.jboss.reflect.plugins.AnnotationHolder |
---|
annotationMap, annotationsArray |
Fields inherited from class org.jboss.util.JBossObject |
---|
hashCode, log, toString |
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
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)
|
Methods inherited from class org.jboss.reflect.plugins.AnnotationHolder |
---|
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, hashCode, 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.AnnotatedInfo |
---|
getAnnotation, getAnnotations, getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent, isAnnotationPresent |
Methods inherited from interface org.jboss.util.JBossInterface |
---|
clone, toShortString |
Field Detail |
---|
protected String name
protected EnumInfo declaring
protected int hash
Constructor Detail |
---|
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 annotationsMethod Detail |
---|
public String getName()
EnumConstantInfo
getName
in interface EnumConstantInfo
public EnumInfo getDeclaring()
EnumConstantInfo
getDeclaring
in interface EnumConstantInfo
public Object getValue()
EnumConstantInfo
getValue
in interface EnumConstantInfo
public boolean equals(Object o)
equals
in class Object
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |