|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectproguard.classfile.attribute.annotation.ElementValue
public abstract class ElementValue
This abstract class represents an element value that is attached to an annotation or an annotation default. Specific types of element values are subclassed from it.
| Field Summary | |
|---|---|
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. |
java.lang.Object |
visitorInfo
An extra field in which visitors can store information. |
| Constructor Summary | |
|---|---|
protected |
ElementValue()
Creates an uninitialized ElementValue. |
protected |
ElementValue(int u2elementNameIndex)
Creates an initialized ElementValue. |
| Method Summary | |
|---|---|
abstract void |
accept(Clazz clazz,
Annotation annotation,
ElementValueVisitor elementValueVisitor)
Accepts the given visitor. |
java.lang.String |
getMethodName(Clazz clazz)
Returns the element name. |
abstract int |
getTag()
Returns the tag of this element value. |
java.lang.Object |
getVisitorInfo()
Gets the visitor information of the visitor accepter. |
void |
referencedMethodAccept(MemberVisitor memberVisitor)
Applies the given visitor to the referenced method. |
void |
setVisitorInfo(java.lang.Object visitorInfo)
Sets the visitor information of the visitor accepter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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 java.lang.Object visitorInfo
| Constructor Detail |
|---|
protected ElementValue()
protected ElementValue(int u2elementNameIndex)
| Method Detail |
|---|
public java.lang.String getMethodName(Clazz clazz)
public abstract int getTag()
public abstract void accept(Clazz clazz,
Annotation annotation,
ElementValueVisitor elementValueVisitor)
public void referencedMethodAccept(MemberVisitor memberVisitor)
public java.lang.Object getVisitorInfo()
VisitorAccepter
getVisitorInfo in interface VisitorAccepterpublic void setVisitorInfo(java.lang.Object visitorInfo)
VisitorAccepter
setVisitorInfo in interface VisitorAccepter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||