public abstract class ElementValue extends Object implements VisitorAccepter
| 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. |
int |
u2elementNameIndex
An extra field for the optional element name.
|
Object |
visitorInfo
An extra field in which visitors can store information.
|
| 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.
|
String |
getMethodName(Clazz clazz)
Returns the element name.
|
abstract char |
getTag()
Returns the tag of this element value.
|
Object |
getVisitorInfo()
Gets the visitor information of the visitor accepter.
|
void |
referencedMethodAccept(MemberVisitor memberVisitor)
Applies the given visitor to the referenced method.
|
void |
setVisitorInfo(Object visitorInfo)
Sets the visitor information of the visitor accepter.
|
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.public Object visitorInfo
protected ElementValue()
protected ElementValue(int u2elementNameIndex)
public abstract char getTag()
public abstract void accept(Clazz clazz, Annotation annotation, ElementValueVisitor elementValueVisitor)
public void referencedMethodAccept(MemberVisitor memberVisitor)
public Object getVisitorInfo()
VisitorAcceptergetVisitorInfo in interface VisitorAccepterpublic void setVisitorInfo(Object visitorInfo)
VisitorAcceptersetVisitorInfo in interface VisitorAccepterCopyright © 2015. All Rights Reserved.