Class AbstractInstantTemplates
java.lang.Object
org.openrewrite.java.migrate.joda.templates.AbstractInstantTemplates
- All Implemented Interfaces:
Templates
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatchesMethodCall(org.openrewrite.java.tree.MethodCall method, MethodTemplate template) This method is used to disambiguate between multiple potential template matches for a given methodCall.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openrewrite.java.migrate.joda.templates.Templates
getTemplates
-
Constructor Details
-
AbstractInstantTemplates
public AbstractInstantTemplates()
-
-
Method Details
-
matchesMethodCall
public boolean matchesMethodCall(org.openrewrite.java.tree.MethodCall method, MethodTemplate template) Description copied from interface:TemplatesThis 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:
matchesMethodCallin interfaceTemplates
-