|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectproguard.classfile.attribute.annotation.Annotation
public class Annotation
Representation of an annotation.
| Field Summary | |
|---|---|
ElementValue[] |
elementValues
|
Clazz[] |
referencedClasses
An extra field pointing to the Clazz objects referenced in the type string. |
int |
u2elementValuesCount
|
int |
u2typeIndex
|
java.lang.Object |
visitorInfo
An extra field in which visitors can store information. |
| Constructor Summary | |
|---|---|
Annotation()
Creates an uninitialized Annotation. |
|
Annotation(int u2typeIndex,
int u2elementValuesCount,
ElementValue[] elementValues)
Creates an initialized Annotation. |
|
| Method Summary | |
|---|---|
void |
elementValuesAccept(Clazz clazz,
ElementValueVisitor elementValueVisitor)
Applies the given visitor to all element value pairs. |
java.lang.String |
getType(Clazz clazz)
Returns the type. |
java.lang.Object |
getVisitorInfo()
Gets the visitor information of the visitor accepter. |
void |
referencedClassAccept(ClassVisitor classVisitor)
Applies the given visitor to the first referenced class. |
void |
referencedClassesAccept(ClassVisitor classVisitor)
Applies the given visitor to all referenced classes. |
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 u2typeIndex
public int u2elementValuesCount
public ElementValue[] elementValues
public Clazz[] referencedClasses
ClassReferenceInitializer.
References to primitive types are ignored.
public java.lang.Object visitorInfo
| Constructor Detail |
|---|
public Annotation()
public Annotation(int u2typeIndex,
int u2elementValuesCount,
ElementValue[] elementValues)
| Method Detail |
|---|
public java.lang.String getType(Clazz clazz)
public void referencedClassAccept(ClassVisitor classVisitor)
public void referencedClassesAccept(ClassVisitor classVisitor)
public void elementValuesAccept(Clazz clazz,
ElementValueVisitor elementValueVisitor)
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 | ||||||||