Package org.objectweb.asm.util
Class CheckFieldAdapter
java.lang.Object
org.objectweb.asm.FieldVisitor
org.objectweb.asm.util.CheckFieldAdapter
public class CheckFieldAdapter
extends org.objectweb.asm.FieldVisitor
A
FieldVisitor
that checks that its methods are properly used.-
Field Summary
Fields inherited from class org.objectweb.asm.FieldVisitor
api, fv
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CheckFieldAdapter
(int api, org.objectweb.asm.FieldVisitor fieldVisitor) Constructs a newCheckFieldAdapter
.CheckFieldAdapter
(org.objectweb.asm.FieldVisitor fieldVisitor) Constructs a newCheckFieldAdapter
. -
Method Summary
Modifier and TypeMethodDescriptionorg.objectweb.asm.AnnotationVisitor
visitAnnotation
(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, String descriptor, boolean visible) Methods inherited from class org.objectweb.asm.FieldVisitor
getDelegate
-
Constructor Details
-
CheckFieldAdapter
public CheckFieldAdapter(org.objectweb.asm.FieldVisitor fieldVisitor) Constructs a newCheckFieldAdapter
. Subclasses must not use this constructor. Instead, they must use theCheckFieldAdapter(int, FieldVisitor)
version.- Parameters:
fieldVisitor
- the field visitor to which this adapter must delegate calls.- Throws:
IllegalStateException
- If a subclass calls this constructor.
-
CheckFieldAdapter
protected CheckFieldAdapter(int api, org.objectweb.asm.FieldVisitor fieldVisitor) Constructs a newCheckFieldAdapter
.- Parameters:
api
- the ASM API version implemented by this visitor. Must be one of theASM
x values inOpcodes
.fieldVisitor
- the field visitor to which this adapter must delegate calls.
-
-
Method Details
-
visitAnnotation
- Overrides:
visitAnnotation
in classorg.objectweb.asm.FieldVisitor
-
visitTypeAnnotation
public org.objectweb.asm.AnnotationVisitor visitTypeAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, String descriptor, boolean visible) - Overrides:
visitTypeAnnotation
in classorg.objectweb.asm.FieldVisitor
-
visitAttribute
public void visitAttribute(org.objectweb.asm.Attribute attribute) - Overrides:
visitAttribute
in classorg.objectweb.asm.FieldVisitor
-
visitEnd
public void visitEnd()- Overrides:
visitEnd
in classorg.objectweb.asm.FieldVisitor
-