Package org.openrewrite.groovy
Class GroovyParser
- java.lang.Object
-
- org.openrewrite.groovy.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 classGroovyParser.Builder
-
Constructor Summary
Constructors Constructor Description GroovyParser()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(java.nio.file.Path path)static GroovyParser.Builderbuilder()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)GroovyParserreset()
-
-
-
Method Detail
-
parse
public java.util.List<G.CompilationUnit> parse(java.lang.String... sources)
- Specified by:
parsein interfaceorg.openrewrite.Parser<G.CompilationUnit>
-
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:
parseInputsin interfaceorg.openrewrite.Parser<G.CompilationUnit>
-
accept
public boolean accept(java.nio.file.Path path)
- Specified by:
acceptin interfaceorg.openrewrite.Parser<G.CompilationUnit>
-
reset
public GroovyParser reset()
- Specified by:
resetin interfaceorg.openrewrite.Parser<G.CompilationUnit>
-
builder
public static GroovyParser.Builder builder()
-
-