Interface InstrumentationFilter
-
- All Known Implementing Classes:
AnnotationFilter,ClassFilter,FieldFilter,MethodFilter,PackageFilter
public interface InstrumentationFilterBase interface for instrumentation filters.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default booleanmatchesClass(ClassFile classFile)Checks if the given class matches this filter.default booleanmatchesField(String owner, String name, String descriptor)Checks if the given field matches this filter.default booleanmatchesMethod(MethodEntry method)Checks if the given method matches this filter.default booleanmatchesMethodCall(String owner, String name, String descriptor)Checks if the given method call matches this filter.
-
-
-
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 namedescriptor- 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 namedescriptor- the method descriptor- Returns:
- true if the call matches, false otherwise
-
-