org.objectweb.asm.util
类 TraceAbstractVisitor

java.lang.Object
  继承者 org.objectweb.asm.util.AbstractVisitor
      继承者 org.objectweb.asm.util.TraceAbstractVisitor
直接已知子类:
TraceAnnotationVisitor, TraceClassVisitor, TraceFieldVisitor, TraceMethodVisitor

public abstract class TraceAbstractVisitor
extends AbstractVisitor

An abstract trace visitor.

作者:
Eric Bruneton

字段摘要
static int CLASS_DECLARATION
          Constant used in appendDescriptor for class signatures, formatted in default Java notation (non-bytecode)
static int CLASS_SIGNATURE
          Constant used in appendDescriptor for class signatures, formatted in bytecode notation
static int FIELD_DESCRIPTOR
          Constant used in appendDescriptor for field descriptors, formatted in bytecode notation
static int FIELD_SIGNATURE
          Constant used in appendDescriptor for field signatures, formatted in bytecode notation
static int INTERNAL_NAME
          Constant used in appendDescriptor for internal type names in bytecode notation.
static int METHOD_DESCRIPTOR
          Constant used in appendDescriptor for method descriptors, formatted in bytecode notation
static int METHOD_SIGNATURE
          Constant used in appendDescriptor for method signatures, formatted in bytecode notation
static int PARAMETERS_DECLARATION
          Constant used in appendDescriptor for method parameter signatures, formatted in default Java notation (non-bytecode)
protected  String tab
          Tab for class members.
static int TYPE_DECLARATION
          Constant used in appendDescriptor for field or method return value signatures, formatted in default Java notation (non-bytecode)
 
从类 org.objectweb.asm.util.AbstractVisitor 继承的字段
buf, OPCODES, text, TYPES
 
构造方法摘要
TraceAbstractVisitor()
           
 
方法摘要
protected  void appendDescriptor(int type, String desc)
          Appends an internal name, a type descriptor or a type signature to buf.
protected  TraceAnnotationVisitor createTraceAnnotationVisitor()
           
 AnnotationVisitor visitAnnotation(String desc, boolean visible)
          Prints a disassembled view of the given annotation.
 void visitAttribute(Attribute attr)
          Prints a disassembled view of the given attribute.
 void visitEnd()
          Does nothing.
 
从类 org.objectweb.asm.util.AbstractVisitor 继承的方法
appendString, getDefaultAttributes, getText, print
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

INTERNAL_NAME

public static final int INTERNAL_NAME
Constant used in appendDescriptor for internal type names in bytecode notation.

另请参见:
常量字段值

FIELD_DESCRIPTOR

public static final int FIELD_DESCRIPTOR
Constant used in appendDescriptor for field descriptors, formatted in bytecode notation

另请参见:
常量字段值

FIELD_SIGNATURE

public static final int FIELD_SIGNATURE
Constant used in appendDescriptor for field signatures, formatted in bytecode notation

另请参见:
常量字段值

METHOD_DESCRIPTOR

public static final int METHOD_DESCRIPTOR
Constant used in appendDescriptor for method descriptors, formatted in bytecode notation

另请参见:
常量字段值

METHOD_SIGNATURE

public static final int METHOD_SIGNATURE
Constant used in appendDescriptor for method signatures, formatted in bytecode notation

另请参见:
常量字段值

CLASS_SIGNATURE

public static final int CLASS_SIGNATURE
Constant used in appendDescriptor for class signatures, formatted in bytecode notation

另请参见:
常量字段值

TYPE_DECLARATION

public static final int TYPE_DECLARATION
Constant used in appendDescriptor for field or method return value signatures, formatted in default Java notation (non-bytecode)

另请参见:
常量字段值

CLASS_DECLARATION

public static final int CLASS_DECLARATION
Constant used in appendDescriptor for class signatures, formatted in default Java notation (non-bytecode)

另请参见:
常量字段值

PARAMETERS_DECLARATION

public static final int PARAMETERS_DECLARATION
Constant used in appendDescriptor for method parameter signatures, formatted in default Java notation (non-bytecode)

另请参见:
常量字段值

tab

protected String tab
Tab for class members.

构造方法详细信息

TraceAbstractVisitor

public TraceAbstractVisitor()
方法详细信息

visitAnnotation

public AnnotationVisitor visitAnnotation(String desc,
                                         boolean visible)
Prints a disassembled view of the given annotation.

参数:
desc - the class descriptor of the annotation class.
visible - true if the annotation is visible at runtime.
返回:
a visitor to visit the annotation values.

visitAttribute

public void visitAttribute(Attribute attr)
Prints a disassembled view of the given attribute.

参数:
attr - an attribute.

visitEnd

public void visitEnd()
Does nothing.


createTraceAnnotationVisitor

protected TraceAnnotationVisitor createTraceAnnotationVisitor()

appendDescriptor

protected void appendDescriptor(int type,
                                String desc)
Appends an internal name, a type descriptor or a type signature to buf.

参数:
type - indicates if desc is an internal name, a field descriptor, a method descriptor, a class signature, ...
desc - an internal name, type descriptor, or type signature. May be null.


Copyright © 2013. All Rights Reserved.