Class AsmVisitorWrapper.ForDeclaredMethods.Entry

java.lang.Object
net.bytebuddy.asm.AsmVisitorWrapper.ForDeclaredMethods.Entry
All Implemented Interfaces:
AsmVisitorWrapper.ForDeclaredMethods.MethodVisitorWrapper, ElementMatcher<MethodDescription>
Enclosing class:
AsmVisitorWrapper.ForDeclaredMethods

@Enhance protected static class AsmVisitorWrapper.ForDeclaredMethods.Entry extends Object implements ElementMatcher<MethodDescription>, AsmVisitorWrapper.ForDeclaredMethods.MethodVisitorWrapper
An entry describing a method visitor wrapper paired with a matcher for fields to be wrapped.
  • Field Details

  • Constructor Details

  • Method Details

    • matches

      public boolean matches(@MaybeNull MethodDescription target)
      Matches a target against this element matcher.
      Specified by:
      matches in interface ElementMatcher<MethodDescription>
      Parameters:
      target - The instance to be matched or null.
      Returns:
      true if the given element is matched by this matcher or false otherwise.
    • wrap

      public org.objectweb.asm.MethodVisitor wrap(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, TypePool typePool, int writerFlags, int readerFlags)
      Wraps a method visitor.
      Specified by:
      wrap in interface AsmVisitorWrapper.ForDeclaredMethods.MethodVisitorWrapper
      Parameters:
      instrumentedType - The instrumented type.
      instrumentedMethod - The method that is currently being defined.
      methodVisitor - The original field visitor that defines the given method.
      implementationContext - The implementation context to use.
      typePool - The type pool to use.
      writerFlags - The ASM ClassWriter reader flags to consider.
      readerFlags - The ASM ClassReader reader flags to consider.
      Returns:
      The wrapped method visitor.