Class TypeWriter.Default.ForInlining.WithDecorationOnly.DecorationClassVisitor

    • Field Detail

      • writerFlags

        private final int writerFlags
        The writer flags being used.
      • readerFlags

        private final int readerFlags
        The reader flags being used.
    • Constructor Detail

      • DecorationClassVisitor

        protected DecorationClassVisitor​(org.objectweb.asm.ClassVisitor classVisitor,
                                         TypeWriter.Default.ForInlining.ContextRegistry contextRegistry,
                                         int writerFlags,
                                         int readerFlags)
        Creates a class visitor which is capable of decorating an existent class on the fly.
        Parameters:
        classVisitor - The underlying class visitor to which writes are delegated.
        contextRegistry - A context registry to register the lazily created implementation context to.
        writerFlags - The writer flags being used.
        readerFlags - The reader flags being used.
    • Method Detail

      • visit

        public void visit​(int classFileVersionNumber,
                          int modifiers,
                          java.lang.String internalName,
                          java.lang.String genericSignature,
                          java.lang.String superClassInternalName,
                          java.lang.String[] interfaceTypeInternalName)
        Overrides:
        visit in class org.objectweb.asm.ClassVisitor
      • onVisitTypeAnnotation

        protected org.objectweb.asm.AnnotationVisitor onVisitTypeAnnotation​(int typeReference,
                                                                            org.objectweb.asm.TypePath typePath,
                                                                            java.lang.String descriptor,
                                                                            boolean visible)
        Description copied from class: MetadataAwareClassVisitor
        An order-sensitive invocation of ClassVisitor.visitTypeAnnotation(int, TypePath, String, boolean).
        Overrides:
        onVisitTypeAnnotation in class MetadataAwareClassVisitor
        Parameters:
        typeReference - The type reference of the type annotation.
        typePath - The type path of the type annotation.
        descriptor - The descriptor of the annotation type.
        visible - true if the annotation is visible at runtime.
        Returns:
        An annotation visitor or null if the annotation should be ignored.
      • onVisitAnnotation

        protected org.objectweb.asm.AnnotationVisitor onVisitAnnotation​(java.lang.String descriptor,
                                                                        boolean visible)
        Description copied from class: MetadataAwareClassVisitor
        An order-sensitive invocation of ClassVisitor.visitAnnotation(String, boolean).
        Overrides:
        onVisitAnnotation in class MetadataAwareClassVisitor
        Parameters:
        descriptor - The annotation type's descriptor.
        visible - true if the annotation is visible at runtime.
        Returns:
        An annotation visitor or null if the annotation should be ignored.
      • apply

        public void apply​(org.objectweb.asm.ClassVisitor classVisitor,
                          TypeInitializer typeInitializer,
                          Implementation.Context implementationContext)
        Applies the drain.
        Specified by:
        apply in interface TypeInitializer.Drain
        Parameters:
        classVisitor - The class visitor to apply the initializer to.
        typeInitializer - The type initializer to write.
        implementationContext - The corresponding implementation context.