Interface Implementation.Context.ExtractableView

    • Method Detail

      • isEnabled

        boolean isEnabled()
        Returns true if this implementation context permits the registration of any implicit type initializers.
        Returns:
        true if this implementation context permits the registration of any implicit type initializers.
      • drain

        void drain​(TypeInitializer.Drain drain,
                   org.objectweb.asm.ClassVisitor classVisitor,
                   AnnotationValueFilter.Factory annotationValueFilterFactory)
        Writes any information that was registered with an Implementation.Context to the provided class visitor. This contains any fields for value caching, any accessor method and it writes the type initializer. The type initializer must therefore never be written manually.
        Parameters:
        drain - The drain to write the type initializer to.
        classVisitor - The class visitor to which the extractable view is to be written.
        annotationValueFilterFactory - The annotation value filter factory to apply when writing annotation.