- All Known Subinterfaces:
TargetedMethodMatcher
- All Known Implementing Classes:
TargetedMethodMatcherImpl
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Creates a method matcher that matches if both matcher pass.
Creates a method matcher tha matches if both this matcher
and the method descriptor predicate pass.
default boolean
boolean
Creates a method matcher that is the inverse of this matcher.
Creates a method matcher that matches if either matcher passes.
-
Method Details
-
-
-
matches
boolean matches(int opcode,
boolean isInvokeDynamic,
String name,
String descriptor)
-
matches
default boolean matches(int opcode,
boolean isInvokeDynamic,
String name,
MethodTypeDesc descriptor)
-
or
Creates a method matcher that matches if either matcher passes.
- Parameters:
other - the other matcher
- Returns:
- a new "or" matcher
-
and
Creates a method matcher that matches if both matcher pass.
- Parameters:
other - the other matcher
- Returns:
- a new "and" matcher
- See Also:
-
-
and
Creates a method matcher tha matches if both this matcher
and the method descriptor predicate pass.
- Parameters:
descPredicate - the method descriptor predicate
- Returns:
- a new "and" matcher
-
negate
Creates a method matcher that is the inverse of this matcher.
- Returns:
- the inverse matcher