Package proguard.dexfile.reader.visitors
Class DexAnnotationVisitor
java.lang.Object
proguard.dexfile.reader.visitors.DexAnnotationVisitor
- Direct Known Subclasses:
DexAnnotationNode
A visitor to visit a Java annotation. The methods of this interface must be called in the
following order: ( visit | visitEnum | visitAnnotation |
visitArray)* visitEnd.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidVisits a primitive value of the annotation.visitAnnotation(String name, String desc) Visits a nested annotation value of the annotation.visitArray(String name) voidvisitEnd()Visits the end of the annotation.voidVisits an enumeration value of the annotation.
-
Field Details
-
visitor
-
-
Constructor Details
-
DexAnnotationVisitor
public DexAnnotationVisitor() -
DexAnnotationVisitor
-
-
Method Details
-
visit
Visits a primitive value of the annotation. -
visitEnum
Visits an enumeration value of the annotation.- Parameters:
name- the value name.desc- the class descriptor of the enumeration class.value- the actual enumeration value.
-
visitAnnotation
Visits a nested annotation value of the annotation.- Parameters:
name- the value name.desc- the class descriptor of the nested annotation class.- Returns:
- a visitor to visit the actual nested annotation value, or null if this visitor is not interested in visiting this nested annotation. The nested annotation value must be fully visited before calling other methods on this annotation visitor.
-
visitArray
-
visitEnd
public void visitEnd()Visits the end of the annotation.
-