public abstract class ElementValue extends SimpleProcessable
Modifier and Type | Field and Description |
---|---|
Clazz |
referencedClass
An extra field pointing to the referenced
Clazz object, if applicable. |
Method |
referencedMethod
An extra field pointing to the referenced
Method object, if applicable. |
static char |
TAG_ANNOTATION |
static char |
TAG_ARRAY |
static char |
TAG_CLASS |
static char |
TAG_ENUM_CONSTANT |
static char |
TAG_STRING_CONSTANT |
int |
u2elementNameIndex
An extra field for the optional element name.
|
processingFlags, processingInfo
Modifier | Constructor and Description |
---|---|
protected |
ElementValue()
Creates an uninitialized ElementValue.
|
protected |
ElementValue(int u2elementNameIndex)
Creates an initialized ElementValue.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
accept(Clazz clazz,
Annotation annotation,
ElementValueVisitor elementValueVisitor)
Accepts the given visitor.
|
java.lang.String |
getMethodName(Clazz clazz)
Returns the element name.
|
abstract char |
getTag()
Returns the tag of this element value.
|
void |
referencedMethodAccept(MemberVisitor memberVisitor)
Applies the given visitor to the referenced method.
|
addProcessingFlags, getProcessingFlags, getProcessingInfo, hasProcessingFlags, removeProcessingFlags, setProcessingFlags, setProcessingInfo
public static final char TAG_STRING_CONSTANT
public static final char TAG_ENUM_CONSTANT
public static final char TAG_CLASS
public static final char TAG_ANNOTATION
public static final char TAG_ARRAY
public int u2elementNameIndex
public Clazz referencedClass
Clazz
object, if applicable. This field
is typically filled out by the ClassReferenceInitializer
.public Method referencedMethod
Method
object, if applicable. This field
is typically filled out by the ClassReferenceInitializer
.protected ElementValue()
protected ElementValue(int u2elementNameIndex)
public java.lang.String getMethodName(Clazz clazz)
public abstract char getTag()
public abstract void accept(Clazz clazz, Annotation annotation, ElementValueVisitor elementValueVisitor)
public void referencedMethodAccept(MemberVisitor memberVisitor)