Class BlockStatementTemplateGenerator


  • public class BlockStatementTemplateGenerator
    extends java.lang.Object
    Generates a stub containing enough variable, method, and class scope for the insertion of a statement in any block scope.
    • Constructor Detail

      • BlockStatementTemplateGenerator

        public BlockStatementTemplateGenerator()
    • Method Detail

      • template

        public java.lang.String template​(org.openrewrite.Cursor cursor,
                                         java.lang.String template,
                                         Space.Location location)
      • listTemplatedTrees

        public <J2 extends J> java.util.List<J2> listTemplatedTrees​(JavaSourceFile cu,
                                                                    java.lang.Class<J2> expected)