|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.objectweb.asm.util.AbstractVisitor
org.objectweb.asm.util.ASMifierAnnotationVisitor
public class ASMifierAnnotationVisitor
An AnnotationVisitor that prints the ASM code that generates the
annotations it visits.
| 字段摘要 | |
|---|---|
protected int |
id
Identifier of the annotation visitor variable in the produced code. |
| 从类 org.objectweb.asm.util.AbstractVisitor 继承的字段 |
|---|
buf, OPCODES, text, TYPES |
| 构造方法摘要 | |
|---|---|
ASMifierAnnotationVisitor(int id)
Constructs a new ASMifierAnnotationVisitor. |
|
| 方法摘要 | |
|---|---|
void |
visit(String name,
Object value)
Visits a primitive value of the annotation. |
AnnotationVisitor |
visitAnnotation(String name,
String desc)
Visits a nested annotation value of the annotation. |
AnnotationVisitor |
visitArray(String name)
Visits an array value of the annotation. |
void |
visitEnd()
Visits the end of the annotation. |
void |
visitEnum(String name,
String desc,
String value)
Visits an enumeration value of the annotation. |
| 从类 org.objectweb.asm.util.AbstractVisitor 继承的方法 |
|---|
appendString, getDefaultAttributes, getText, print |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
protected final int id
| 构造方法详细信息 |
|---|
public ASMifierAnnotationVisitor(int id)
ASMifierAnnotationVisitor.
id - identifier of the annotation visitor variable in the produced
code.| 方法详细信息 |
|---|
public void visit(String name,
Object value)
AnnotationVisitor 复制的描述
AnnotationVisitor 中的 visitname - the value name.value - the actual value, whose type must be Byte,
Boolean, Character, Short,
Integer, Long, Float, Double,
String or Type. This value can also be an array
of byte, boolean, short, char, int, long, float or double values
(this is equivalent to using visitArray and
visiting each array element in turn, but is more convenient).
public void visitEnum(String name,
String desc,
String value)
AnnotationVisitor 复制的描述
AnnotationVisitor 中的 visitEnumname - the value name.desc - the class descriptor of the enumeration class.value - the actual enumeration value.
public AnnotationVisitor visitAnnotation(String name,
String desc)
AnnotationVisitor 复制的描述
AnnotationVisitor 中的 visitAnnotationname - the value name.desc - the class descriptor of the nested annotation class.
public AnnotationVisitor visitArray(String name)
AnnotationVisitor 复制的描述visit. This is what
ClassReader does.
AnnotationVisitor 中的 visitArrayname - the value name.
public void visitEnd()
AnnotationVisitor 复制的描述
AnnotationVisitor 中的 visitEnd
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||