|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.objectweb.asm.util.AbstractVisitor
org.objectweb.asm.util.TraceAbstractVisitor
org.objectweb.asm.util.TraceAnnotationVisitor
public class TraceAnnotationVisitor
An AnnotationVisitor that prints a disassembled view of the
annotations it visits.
| Field Summary | |
|---|---|
protected AnnotationVisitor |
av
The AnnotationVisitor to which this visitor delegates calls. |
private int |
valueNumber
|
| Fields inherited from class org.objectweb.asm.util.TraceAbstractVisitor |
|---|
CLASS_DECLARATION, CLASS_SIGNATURE, FIELD_DESCRIPTOR, FIELD_SIGNATURE, INTERNAL_NAME, METHOD_DESCRIPTOR, METHOD_SIGNATURE, PARAMETERS_DECLARATION, tab, TYPE_DECLARATION |
| Fields inherited from class org.objectweb.asm.util.AbstractVisitor |
|---|
buf, OPCODES, text, TYPES |
| Constructor Summary | |
|---|---|
TraceAnnotationVisitor()
Constructs a new TraceAnnotationVisitor. |
|
| Method Summary | |
|---|---|
private void |
appendComa(int i)
|
void |
visit(java.lang.String name,
java.lang.Object value)
Visits a primitive value of the annotation. |
AnnotationVisitor |
visitAnnotation(java.lang.String name,
java.lang.String desc)
Visits a nested annotation value of the annotation. |
AnnotationVisitor |
visitArray(java.lang.String name)
Visits an array value of the annotation. |
private void |
visitBoolean(boolean value)
|
private void |
visitByte(byte value)
|
private void |
visitChar(char value)
|
private void |
visitDouble(double value)
|
void |
visitEnd()
Does nothing. |
void |
visitEnum(java.lang.String name,
java.lang.String desc,
java.lang.String value)
Visits an enumeration value of the annotation. |
private void |
visitFloat(float value)
|
private void |
visitInt(int value)
|
private void |
visitLong(long value)
|
private void |
visitShort(short value)
|
private void |
visitString(java.lang.String value)
|
private void |
visitType(Type value)
|
| Methods inherited from class org.objectweb.asm.util.TraceAbstractVisitor |
|---|
appendDescriptor, createTraceAnnotationVisitor, visitAnnotation, visitAttribute |
| Methods inherited from class org.objectweb.asm.util.AbstractVisitor |
|---|
appendString, getDefaultAttributes, getText, print, printList |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected AnnotationVisitor av
AnnotationVisitor to which this visitor delegates calls. May
be null.
private int valueNumber
| Constructor Detail |
|---|
public TraceAnnotationVisitor()
TraceAnnotationVisitor.
| Method Detail |
|---|
public void visit(java.lang.String name,
java.lang.Object value)
AnnotationVisitor
visit in interface AnnotationVisitorname - 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).private void visitInt(int value)
private void visitLong(long value)
private void visitFloat(float value)
private void visitDouble(double value)
private void visitChar(char value)
private void visitShort(short value)
private void visitByte(byte value)
private void visitBoolean(boolean value)
private void visitString(java.lang.String value)
private void visitType(Type value)
public void visitEnum(java.lang.String name,
java.lang.String desc,
java.lang.String value)
AnnotationVisitor
visitEnum in interface AnnotationVisitorname - the value name.desc - the class descriptor of the enumeration class.value - the actual enumeration value.
public AnnotationVisitor visitAnnotation(java.lang.String name,
java.lang.String desc)
AnnotationVisitor
visitAnnotation in interface AnnotationVisitorname - the value name.desc - the class descriptor of the nested annotation class.
public AnnotationVisitor visitArray(java.lang.String name)
AnnotationVisitorvisit. This is what
ClassReader does.
visitArray in interface AnnotationVisitorname - the value name.
public void visitEnd()
TraceAbstractVisitor
visitEnd in interface AnnotationVisitorvisitEnd in class TraceAbstractVisitorprivate void appendComa(int i)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||