Class AsmVisitorWrapper.ForDeclaredFields

    • Constructor Detail

      • ForDeclaredFields

        public ForDeclaredFields()
        Creates a new visitor wrapper for declared fields.
      • ForDeclaredFields

        protected ForDeclaredFields​(List<AsmVisitorWrapper.ForDeclaredFields.Entry> entries)
        Creates a new visitor wrapper for declared fields.
        Parameters:
        entries - The list of entries that describe matched fields in their application order.
    • Method Detail

      • wrap

        public org.objectweb.asm.ClassVisitor wrap​(TypeDescription instrumentedType,
                                                   org.objectweb.asm.ClassVisitor classVisitor,
                                                   Implementation.Context implementationContext,
                                                   TypePool typePool,
                                                   FieldList<FieldDescription.InDefinedShape> fields,
                                                   MethodList<?> methods,
                                                   int writerFlags,
                                                   int readerFlags)
        Applies a ClassVisitorWrapper to the creation of a DynamicType.
        Parameters:
        instrumentedType - The instrumented type.
        classVisitor - A ClassVisitor to become the new primary class visitor to which the created DynamicType is written to.
        implementationContext - The implementation context of the current instrumentation.
        typePool - The type pool that was provided for the class creation.
        fields - The instrumented type's fields.
        methods - The instrumented type's methods non-ignored declared and virtually inherited methods.
        writerFlags - The ASM ClassWriter flags to consider.
        readerFlags - The ASM ClassReader flags to consider.
        Returns:
        A new ClassVisitor that usually delegates to the ClassVisitor delivered in the argument.