Class AbstractInstantTemplates

java.lang.Object
org.openrewrite.java.migrate.joda.templates.AbstractInstantTemplates
All Implemented Interfaces:
Templates

public class AbstractInstantTemplates extends Object implements Templates
  • Constructor Details

    • AbstractInstantTemplates

      public AbstractInstantTemplates()
  • Method Details

    • matchesMethodCall

      public boolean matchesMethodCall(org.openrewrite.java.tree.MethodCall method, MethodTemplate template)
      Description copied from interface: Templates
      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.
      Specified by:
      matchesMethodCall in interface Templates