Interface Templates

All Known Implementing Classes:
AbstractDateTimeTemplates, AbstractDurationTemplates, AbstractInstantTemplates, BaseDateTime, DateTimeFormatTemplates, DateTimeFormatterTemplates, DateTimeTemplates, DurationTemplates, InstantTemplates, TimeZoneTemplates

public interface Templates
  • Method Summary

    Modifier and Type
    Method
    Description
     
    default boolean
    matchesMethodCall(org.openrewrite.java.tree.MethodCall method, MethodTemplate template)
    This method is used to disambiguate between multiple potential template matches for a given methodCall.
  • Method Details

    • getTemplates

      List<MethodTemplate> getTemplates()
    • matchesMethodCall

      default boolean matchesMethodCall(org.openrewrite.java.tree.MethodCall method, MethodTemplate template)
      This method is used to disambiguate between multiple potential template matches for a given methodCall. This should be overridden by Templates classes where methodMatcher.matches() may return more than one template.