Interface InstrumentationFilter

    • Method Detail

      • matchesClass

        default boolean matchesClass​(ClassFile classFile)
        Checks if the given class matches this filter.
        Parameters:
        classFile - the class file to check
        Returns:
        true if the class matches, false otherwise
      • matchesMethod

        default boolean matchesMethod​(MethodEntry method)
        Checks if the given method matches this filter.
        Parameters:
        method - the method entry to check
        Returns:
        true if the method matches, false otherwise
      • matchesField

        default boolean matchesField​(String owner,
                                     String name,
                                     String descriptor)
        Checks if the given field matches this filter.
        Parameters:
        owner - the class owning the field (internal name)
        name - the field name
        descriptor - the field type descriptor
        Returns:
        true if the field matches, false otherwise
      • matchesMethodCall

        default boolean matchesMethodCall​(String owner,
                                          String name,
                                          String descriptor)
        Checks if the given method call matches this filter.
        Parameters:
        owner - the class being called (internal name)
        name - the method name
        descriptor - the method descriptor
        Returns:
        true if the call matches, false otherwise