Class GroovyParser.Builder

java.lang.Object
org.openrewrite.Parser.Builder
org.openrewrite.groovy.GroovyParser.Builder
All Implemented Interfaces:
Cloneable
Enclosing class:
GroovyParser

public static class GroovyParser.Builder extends org.openrewrite.Parser.Builder
  • Field Details

  • Constructor Details

  • Method Details

    • logCompilationWarningsAndErrors

      public GroovyParser.Builder logCompilationWarningsAndErrors(boolean logCompilationWarningsAndErrors)
    • classpath

      public GroovyParser.Builder classpath(@Nullable Collection<Path> classpath)
    • classpath

      public GroovyParser.Builder classpath(String... artifactNames)
    • classpathFromResource

      public GroovyParser.Builder classpathFromResource(org.openrewrite.ExecutionContext ctx, String... artifactNamesWithVersions)
    • addClasspathEntry

      public GroovyParser.Builder addClasspathEntry(Path entry)
      This is an internal API which is subject to removal or change.
    • typeCache

      @Deprecated public GroovyParser.Builder typeCache(org.openrewrite.java.internal.JavaTypeCache typeCache)
      Deprecated.
      Configure a JavaTypeFactory via typeFactory instead. The cache becomes an implementation detail of the default DefaultJavaTypeFactory.
    • typeFactory

      public GroovyParser.Builder typeFactory(org.openrewrite.java.internal.JavaTypeFactory typeFactory)
    • styles

      public GroovyParser.Builder styles(Iterable<? extends org.openrewrite.style.NamedStyles> styles)
    • compilerCustomizers

      @SafeVarargs public final GroovyParser.Builder compilerCustomizers(Consumer<org.codehaus.groovy.control.CompilerConfiguration>... compilerCustomizers)
    • compilerCustomizers

      public GroovyParser.Builder compilerCustomizers(Iterable<Consumer<org.codehaus.groovy.control.CompilerConfiguration>> compilerCustomizers)
    • build

      public GroovyParser build()
      Specified by:
      build in class org.openrewrite.Parser.Builder
    • getDslName

      public String getDslName()
      Specified by:
      getDslName in class org.openrewrite.Parser.Builder
    • clone

      public GroovyParser.Builder clone()
      Overrides:
      clone in class org.openrewrite.Parser.Builder