Interface BasicInvocationMatcher

All Superinterfaces:
InvocationMatcher
All Known Subinterfaces:
GenericExternalModel

public interface BasicInvocationMatcher extends InvocationMatcher
  • Method Details

    • matches

      default boolean matches(@Nullable org.openrewrite.java.tree.JavaType.Method type)
      Description copied from interface: InvocationMatcher
      Whether the method invocation or constructor matches the criteria of this matcher.
      Specified by:
      matches in interface InvocationMatcher
      Parameters:
      type - The type of the method invocation or constructor.
      Returns:
      True if the invocation or constructor matches the criteria of this matcher.
    • matchesTargetType

      default boolean matchesTargetType(@Nullable org.openrewrite.java.tree.JavaType.FullyQualified type)
      Parameters:
      type - The declaring type of the method invocation or constructor.
      Returns:
      True if the declaring type matches the criteria of this matcher.
    • isMatchOverrides

      boolean isMatchOverrides()
      Returns:
      True if this method matcher should match on overrides of the target type.
    • matchesTargetTypeName

      boolean matchesTargetTypeName(String fullyQualifiedTypeName)
    • matchesMethodName

      boolean matchesMethodName(String methodName)
    • matchesParameterTypes

      boolean matchesParameterTypes(List<org.openrewrite.java.tree.JavaType> parameterTypes)