public class DexAnnotationNode extends DexAnnotationVisitor
Modifier and Type | Class and Description |
---|---|
static class |
DexAnnotationNode.Item |
Modifier and Type | Field and Description |
---|---|
java.util.List<DexAnnotationNode.Item> |
items |
java.lang.String |
type |
Visibility |
visibility |
visitor
Constructor and Description |
---|
DexAnnotationNode(java.lang.String type,
Visibility visibility) |
Modifier and Type | Method and Description |
---|---|
void |
accept(DexAnnotationAble av) |
static void |
acceptAnnotationItem(DexAnnotationVisitor dav,
java.lang.String name,
java.lang.Object o) |
void |
visit(java.lang.String name,
java.lang.Object value)
Visits a primitive value of the annotation.
|
DexAnnotationVisitor |
visitAnnotation(java.lang.String name,
java.lang.String desc)
Visits a nested annotation value of the annotation.
|
DexAnnotationVisitor |
visitArray(java.lang.String name) |
void |
visitEnum(java.lang.String name,
java.lang.String desc,
java.lang.String value)
Visits an enumeration value of the annotation.
|
visitEnd
public java.util.List<DexAnnotationNode.Item> items
public java.lang.String type
public Visibility visibility
public DexAnnotationNode(java.lang.String type, Visibility visibility)
public static void acceptAnnotationItem(DexAnnotationVisitor dav, java.lang.String name, java.lang.Object o)
public void accept(DexAnnotationAble av)
public void visit(java.lang.String name, java.lang.Object value)
DexAnnotationVisitor
visit
in class DexAnnotationVisitor
name
- the value name.value
- the actual value, whose type must be Byte
, Boolean
, Character
, Short
, Integer
, Long
, Float
, Double
,
String
or DexType
.public DexAnnotationVisitor visitAnnotation(java.lang.String name, java.lang.String desc)
DexAnnotationVisitor
visitAnnotation
in class DexAnnotationVisitor
name
- the value name.desc
- the class descriptor of the nested annotation class.public DexAnnotationVisitor visitArray(java.lang.String name)
visitArray
in class DexAnnotationVisitor
public void visitEnum(java.lang.String name, java.lang.String desc, java.lang.String value)
DexAnnotationVisitor
visitEnum
in class DexAnnotationVisitor
name
- the value name.desc
- the class descriptor of the enumeration class.value
- the actual enumeration value.