Class TypeInitializer.Drain.Default

    • Constructor Detail

      • Default

        public Default​(TypeDescription instrumentedType,
                       TypeWriter.MethodPool methodPool,
                       AnnotationValueFilter.Factory annotationValueFilterFactory)
        Creates a new default type initializer drain.
        Parameters:
        instrumentedType - The instrumented type.
        methodPool - The method pool to use.
        annotationValueFilterFactory - The annotation value filter factory to use.
    • Method Detail

      • 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.