Class GroovyTemplate

java.lang.Object
org.openrewrite.java.JavaTemplate
org.openrewrite.groovy.GroovyTemplate
All Implemented Interfaces:
org.openrewrite.template.SourceTemplate<org.openrewrite.java.tree.J,org.openrewrite.java.tree.JavaCoordinates>

public class GroovyTemplate extends org.openrewrite.java.JavaTemplate
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from class org.openrewrite.java.JavaTemplate

    org.openrewrite.java.JavaTemplate.Matcher
  • Method Summary

    Modifier and Type
    Method
    Description
    static <J2 extends org.openrewrite.java.tree.J>
    J2
    apply(String template, org.openrewrite.Cursor scope, org.openrewrite.java.tree.JavaCoordinates coordinates, Object... parameters)
     
     
    static boolean
    matches(String template, org.openrewrite.Cursor cursor)
     
    protected org.openrewrite.java.internal.template.Substitutions
    substitutions(Object[] parameters)
     

    Methods inherited from class org.openrewrite.java.JavaTemplate

    apply, getCode, getGenericTypes, getTemplateClasspathDir, matcher, matches

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • substitutions

      protected org.openrewrite.java.internal.template.Substitutions substitutions(Object[] parameters)
      Overrides:
      substitutions in class org.openrewrite.java.JavaTemplate
    • apply

      public static <J2 extends org.openrewrite.java.tree.J> J2 apply(String template, org.openrewrite.Cursor scope, org.openrewrite.java.tree.JavaCoordinates coordinates, Object... parameters)
    • builder

      public static GroovyTemplate.Builder builder(String code)
    • matches

      public static boolean matches(String template, org.openrewrite.Cursor cursor)