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.RecordComponentVisitorARecordComponentVisitorthat checks that its methods are properly used.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCheckRecordComponentAdapter(int api, org.objectweb.asm.RecordComponentVisitor recordComponentVisitor)Constructs a newCheckRecordComponentAdapter.CheckRecordComponentAdapter(org.objectweb.asm.RecordComponentVisitor recordComponentVisitor)Constructs a newCheckRecordComponentAdapter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.objectweb.asm.AnnotationVisitorvisitAnnotation(java.lang.String descriptor, boolean visible)voidvisitAttribute(org.objectweb.asm.Attribute attribute)voidvisitEnd()org.objectweb.asm.AnnotationVisitorvisitTypeAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, java.lang.String descriptor, boolean visible)
-
-
-
Constructor Detail
-
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:
java.lang.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.ASM8orOpcodes.ASM9.recordComponentVisitor- the record component visitor to which this adapter must delegate calls.
-
-
Method Detail
-
visitAnnotation
public org.objectweb.asm.AnnotationVisitor visitAnnotation(java.lang.String descriptor, boolean visible)- Overrides:
visitAnnotationin classorg.objectweb.asm.RecordComponentVisitor
-
visitTypeAnnotation
public org.objectweb.asm.AnnotationVisitor visitTypeAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, java.lang.String descriptor, boolean visible)- Overrides:
visitTypeAnnotationin classorg.objectweb.asm.RecordComponentVisitor
-
visitAttribute
public void visitAttribute(org.objectweb.asm.Attribute attribute)
- Overrides:
visitAttributein classorg.objectweb.asm.RecordComponentVisitor
-
visitEnd
public void visitEnd()
- Overrides:
visitEndin classorg.objectweb.asm.RecordComponentVisitor
-
-