public class CheckFieldAdapter
extends org.objectweb.asm.FieldVisitor
FieldVisitor
that checks that its methods are properly used.Modifier | Constructor and Description |
---|---|
|
CheckFieldAdapter(org.objectweb.asm.FieldVisitor fieldVisitor)
Constructs a new
CheckFieldAdapter . |
protected |
CheckFieldAdapter(int api,
org.objectweb.asm.FieldVisitor fieldVisitor)
Constructs a new
CheckFieldAdapter . |
Modifier and Type | Method and Description |
---|---|
org.objectweb.asm.AnnotationVisitor |
visitAnnotation(java.lang.String descriptor,
boolean visible) |
void |
visitAttribute(org.objectweb.asm.Attribute attribute) |
void |
visitEnd() |
org.objectweb.asm.AnnotationVisitor |
visitTypeAnnotation(int typeRef,
org.objectweb.asm.TypePath typePath,
java.lang.String descriptor,
boolean visible) |
public CheckFieldAdapter(org.objectweb.asm.FieldVisitor fieldVisitor)
CheckFieldAdapter
. Subclasses must not use this constructor.
Instead, they must use the CheckFieldAdapter(int, FieldVisitor)
version.fieldVisitor
- the field visitor to which this adapter must delegate calls.java.lang.IllegalStateException
- If a subclass calls this constructor.protected CheckFieldAdapter(int api, org.objectweb.asm.FieldVisitor fieldVisitor)
CheckFieldAdapter
.api
- the ASM API version implemented by this visitor. Must be one of Opcodes.ASM4
, Opcodes.ASM5
or Opcodes.ASM6
.fieldVisitor
- the field visitor to which this adapter must delegate calls.public org.objectweb.asm.AnnotationVisitor visitAnnotation(java.lang.String descriptor, boolean visible)
visitAnnotation
in class org.objectweb.asm.FieldVisitor
public org.objectweb.asm.AnnotationVisitor visitTypeAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, java.lang.String descriptor, boolean visible)
visitTypeAnnotation
in class org.objectweb.asm.FieldVisitor
public void visitAttribute(org.objectweb.asm.Attribute attribute)
visitAttribute
in class org.objectweb.asm.FieldVisitor
public void visitEnd()
visitEnd
in class org.objectweb.asm.FieldVisitor