Class GroovyParser

  • All Implemented Interfaces:
    org.openrewrite.Parser<G.CompilationUnit>

    public class GroovyParser
    extends java.lang.Object
    implements org.openrewrite.Parser<G.CompilationUnit>
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  GroovyParser.Builder  
      • Nested classes/interfaces inherited from interface org.openrewrite.Parser

        org.openrewrite.Parser.Input
    • Constructor Summary

      Constructors 
      Constructor Description
      GroovyParser()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(java.nio.file.Path path)  
      static GroovyParser.Builder builder()  
      java.util.List<G.CompilationUnit> parse​(java.lang.String... sources)  
      java.util.List<G.CompilationUnit> parseInputs​(java.lang.Iterable<org.openrewrite.Parser.Input> sources, @Nullable java.nio.file.Path relativeTo, org.openrewrite.ExecutionContext ctx)  
      GroovyParser reset()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.openrewrite.Parser

        accept, acceptedInputs, parse, parse, randomSourceName
    • Constructor Detail

      • GroovyParser

        public GroovyParser()
    • Method Detail

      • parseInputs

        public java.util.List<G.CompilationUnit> parseInputs​(java.lang.Iterable<org.openrewrite.Parser.Input> sources,
                                                             @Nullable
                                                             @Nullable java.nio.file.Path relativeTo,
                                                             org.openrewrite.ExecutionContext ctx)
        Specified by:
        parseInputs in interface org.openrewrite.Parser<G.CompilationUnit>
      • accept

        public boolean accept​(java.nio.file.Path path)
        Specified by:
        accept in interface org.openrewrite.Parser<G.CompilationUnit>