Package org.objectweb.asm.util
Class CheckRecordComponentAdapter
java.lang.Object
org.objectweb.asm.RecordComponentVisitor
org.objectweb.asm.util.CheckRecordComponentAdapter
public class CheckRecordComponentAdapter
extends org.objectweb.asm.RecordComponentVisitor
A
RecordComponentVisitor
that checks that its methods are properly used.-
Field Summary
Fields inherited from class org.objectweb.asm.RecordComponentVisitor
api, delegate
-
Constructor Summary
ModifierConstructorDescriptionprotected
CheckRecordComponentAdapter
(int api, org.objectweb.asm.RecordComponentVisitor recordComponentVisitor) Constructs a newCheckRecordComponentAdapter
.CheckRecordComponentAdapter
(org.objectweb.asm.RecordComponentVisitor recordComponentVisitor) Constructs a newCheckRecordComponentAdapter
. -
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.RecordComponentVisitor
getDelegate
-
Constructor Details
-
CheckRecordComponentAdapter
public CheckRecordComponentAdapter(org.objectweb.asm.RecordComponentVisitor recordComponentVisitor) Constructs a newCheckRecordComponentAdapter
. Subclasses must not use this constructor. Instead, they must use theCheckRecordComponentAdapter(int, RecordComponentVisitor)
version.- Parameters:
recordComponentVisitor
- the record component visitor to which this adapter must delegate calls.- Throws:
IllegalStateException
- If a subclass calls this constructor.
-
CheckRecordComponentAdapter
protected CheckRecordComponentAdapter(int api, org.objectweb.asm.RecordComponentVisitor recordComponentVisitor) Constructs a newCheckRecordComponentAdapter
.- Parameters:
api
- the ASM API version implemented by this visitor. Must be one ofOpcodes.ASM8
orOpcodes.ASM9
.recordComponentVisitor
- the record component visitor to which this adapter must delegate calls.
-
-
Method Details
-
visitAnnotation
- Overrides:
visitAnnotation
in classorg.objectweb.asm.RecordComponentVisitor
-
visitTypeAnnotation
public org.objectweb.asm.AnnotationVisitor visitTypeAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, String descriptor, boolean visible) - Overrides:
visitTypeAnnotation
in classorg.objectweb.asm.RecordComponentVisitor
-
visitAttribute
public void visitAttribute(org.objectweb.asm.Attribute attribute) - Overrides:
visitAttribute
in classorg.objectweb.asm.RecordComponentVisitor
-
visitEnd
public void visitEnd()- Overrides:
visitEnd
in classorg.objectweb.asm.RecordComponentVisitor
-