public class EmptyVisitor extends ClassVisitor
Modifier and Type | Field and Description |
---|---|
protected AnnotationVisitor |
av |
protected FieldVisitor |
fv |
protected MethodVisitor |
mv |
api, cv
Constructor and Description |
---|
EmptyVisitor() |
Modifier and Type | Method and Description |
---|---|
AnnotationVisitor |
visitAnnotation(String desc,
boolean visible)
Visits an annotation of the class.
|
FieldVisitor |
visitField(int access,
String name,
String desc,
String signature,
Object value)
Visits a field of the class.
|
MethodVisitor |
visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions)
Visits a method of the class.
|
visit, visitAttribute, visitEnd, visitInnerClass, visitOuterClass, visitSource
protected AnnotationVisitor av
protected MethodVisitor mv
protected FieldVisitor fv
public AnnotationVisitor visitAnnotation(String desc, boolean visible)
ClassVisitor
visitAnnotation
in class ClassVisitor
desc
- the class descriptor of the annotation class.visible
- true if the annotation is visible at runtime.public FieldVisitor visitField(int access, String name, String desc, String signature, Object value)
ClassVisitor
visitField
in class ClassVisitor
access
- the field's access flags (see Opcodes
). This parameter
also indicates if the field is synthetic and/or deprecated.name
- the field's name.desc
- 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.public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions)
ClassVisitor
MethodVisitor
instance (or null) each time it is called,
i.e., it should not return a previously returned visitor.visitMethod
in class ClassVisitor
access
- the method's access flags (see Opcodes
). This
parameter also indicates if the method is synthetic and/or
deprecated.name
- the method's name.desc
- 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.Copyright © 2018. All rights reserved.