|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.objectweb.asm.commons.EmptyVisitor
org.eclipse.jetty.annotations.AnnotationParser.MyClassVisitor
public class AnnotationParser.MyClassVisitor
MyClassVisitor ASM visitor for a class.
| 构造方法摘要 | |
|---|---|
AnnotationParser.MyClassVisitor()
|
|
| 方法摘要 | |
|---|---|
void |
visit(int version,
int access,
String name,
String signature,
String superName,
String[] interfaces)
Visits the header of the class. |
AnnotationVisitor |
visitAnnotation(String desc,
boolean visible)
Visits an annotation of the class. |
FieldVisitor |
visitField(int access,
String fieldName,
String fieldType,
String signature,
Object value)
Visits a field of the class. |
MethodVisitor |
visitMethod(int access,
String name,
String methodDesc,
String signature,
String[] exceptions)
Visits a method of the class. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public AnnotationParser.MyClassVisitor()
| 方法详细信息 |
|---|
public void visit(int version,
int access,
String name,
String signature,
String superName,
String[] interfaces)
ClassVisitor 复制的描述
ClassVisitor 中的 visitEmptyVisitor 中的 visitversion - the class version.access - the class's access flags (see Opcodes). This
parameter also indicates if the class is deprecated.name - the internal name of the class (see
getInternalName).signature - the signature of this class. May be null if
the class is not a generic one, and does not extend or implement
generic classes or interfaces.superName - the internal of name of the super class (see
getInternalName). For interfaces,
the super class is Object. May be null, but
only for the Object class.interfaces - the internal names of the class's interfaces (see
getInternalName). May be
null.
public AnnotationVisitor visitAnnotation(String desc,
boolean visible)
ClassVisitor 复制的描述
ClassVisitor 中的 visitAnnotationFieldVisitor 中的 visitAnnotationMethodVisitor 中的 visitAnnotationEmptyVisitor 中的 visitAnnotationdesc - the class descriptor of the annotation class.visible - true if the annotation is visible at runtime.
public MethodVisitor visitMethod(int access,
String name,
String methodDesc,
String signature,
String[] exceptions)
ClassVisitor 复制的描述MethodVisitor instance (or null) each time it is
called, i.e., it should not return a previously returned visitor.
ClassVisitor 中的 visitMethodEmptyVisitor 中的 visitMethodaccess - the method's access flags (see Opcodes). This
parameter also indicates if the method is synthetic and/or
deprecated.name - the method's name.methodDesc - the method's descriptor (see Type).signature - the method's signature. May be null if the
method parameters, return type and exceptions do not use generic
types.exceptions - the internal names of the method's exception classes
(see getInternalName). May be
null.
public FieldVisitor visitField(int access,
String fieldName,
String fieldType,
String signature,
Object value)
ClassVisitor 复制的描述
ClassVisitor 中的 visitFieldEmptyVisitor 中的 visitFieldaccess - the field's access flags (see Opcodes). This
parameter also indicates if the field is synthetic and/or
deprecated.fieldName - the field's name.fieldType - the field's descriptor (see Type).signature - the field's signature. May be null if the
field's type does not use generic types.value - the field's initial value. This parameter, which may be
null if the field does not have an initial value, must
be an Integer, a Float, a Long, a
Double or a String (for int,
float, long or String fields
respectively). This parameter is only used for static fields.
Its value is ignored for non static fields, which must be
initialized through bytecode instructions in constructors or
methods.
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||