Class CheckRecordComponentAdapter

    • Field Detail

      • visitEndCalled

        private boolean visitEndCalled
        Whether the visitEnd() method has been called.
    • Constructor Detail

      • CheckRecordComponentAdapter

        protected CheckRecordComponentAdapter​(int api,
                                              RecordComponentVisitor recordComponentVisitor)
        Constructs a new CheckRecordComponentAdapter.
        Parameters:
        api - the ASM API version implemented by this visitor. Must be Opcodes.ASM8.
        recordComponentVisitor - the record component visitor to which this adapter must delegate calls.
    • Method Detail

      • visitAnnotation

        public AnnotationVisitor visitAnnotation​(java.lang.String descriptor,
                                                 boolean visible)
        Description copied from class: RecordComponentVisitor
        Visits an annotation of the record component.
        Overrides:
        visitAnnotation in class RecordComponentVisitor
        Parameters:
        descriptor - the class descriptor of the annotation class.
        visible - true if the annotation is visible at runtime.
        Returns:
        a visitor to visit the annotation values, or null if this visitor is not interested in visiting this annotation.
      • visitEnd

        public void visitEnd()
        Description copied from class: RecordComponentVisitor
        Visits the end of the record component. This method, which is the last one to be called, is used to inform the visitor that everything have been visited.
        Overrides:
        visitEnd in class RecordComponentVisitor
      • checkVisitEndNotCalled

        private void checkVisitEndNotCalled()