public class EnumConstantElementValue extends ElementValue
| Modifier and Type | Field and Description |
|---|---|
Clazz[] |
referencedClasses
An extra field pointing to the Clazz objects referenced in the
type name string.
|
Field |
referencedField
An extra field optionally pointing to the referenced enum Field object.
|
int |
u2constantNameIndex |
int |
u2typeNameIndex |
referencedClass, referencedMethod, u2elementNameIndex, visitorInfo| Constructor and Description |
|---|
EnumConstantElementValue()
Creates an uninitialized EnumConstantElementValue.
|
EnumConstantElementValue(int u2elementNameIndex,
int u2typeNameIndex,
int u2constantNameIndex)
Creates an initialized EnumConstantElementValue.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Clazz clazz,
Annotation annotation,
ElementValueVisitor elementValueVisitor)
Accepts the given visitor.
|
String |
getConstantName(Clazz clazz)
Returns the constant name.
|
char |
getTag()
Returns the tag of this element value.
|
String |
getTypeName(Clazz clazz)
Returns the enumeration type name.
|
void |
referencedClassesAccept(ClassVisitor classVisitor)
Applies the given visitor to all referenced classes.
|
void |
referencedFieldAccept(MemberVisitor memberVisitor)
Applies the given visitor to the referenced field.
|
getMethodName, getVisitorInfo, referencedMethodAccept, setVisitorInfopublic int u2typeNameIndex
public int u2constantNameIndex
public Clazz[] referencedClasses
ClassReferenceInitializer.
References to primitive types are ignored.public Field referencedField
ClassReferenceInitializer.public EnumConstantElementValue()
public EnumConstantElementValue(int u2elementNameIndex,
int u2typeNameIndex,
int u2constantNameIndex)
public void referencedClassesAccept(ClassVisitor classVisitor)
public void referencedFieldAccept(MemberVisitor memberVisitor)
public char getTag()
ElementValuegetTag in class ElementValuepublic void accept(Clazz clazz, Annotation annotation, ElementValueVisitor elementValueVisitor)
ElementValueaccept in class ElementValueCopyright © 2015. All Rights Reserved.