Package org.openrewrite.groovy
Class GroovyParserVisitor
java.lang.Object
org.openrewrite.groovy.GroovyParserVisitor
See the language syntax reference.
-
Constructor Summary
ConstructorsConstructorDescriptionGroovyParserVisitor(Path sourcePath, @Nullable org.openrewrite.FileAttributes fileAttributes, org.openrewrite.internal.EncodingDetectingInputStream source, org.openrewrite.java.internal.JavaTypeCache typeCache, org.openrewrite.ExecutionContext ctx) -
Method Summary
Modifier and TypeMethodDescriptionvisit(org.codehaus.groovy.control.SourceUnit unit, org.codehaus.groovy.ast.ModuleNode ast) List<org.openrewrite.java.tree.J.Annotation> visitAndGetAnnotations(org.codehaus.groovy.ast.AnnotatedNode node, org.openrewrite.groovy.GroovyParserVisitor.RewriteGroovyClassVisitor classVisitor) org.openrewrite.java.tree.J.AnnotationvisitAnnotation(org.codehaus.groovy.ast.AnnotationNode annotation, org.openrewrite.groovy.GroovyParserVisitor.RewriteGroovyClassVisitor classVisitor)
-
Constructor Details
-
GroovyParserVisitor
public GroovyParserVisitor(Path sourcePath, @Nullable org.openrewrite.FileAttributes fileAttributes, org.openrewrite.internal.EncodingDetectingInputStream source, org.openrewrite.java.internal.JavaTypeCache typeCache, org.openrewrite.ExecutionContext ctx)
-
-
Method Details
-
visit
public G.CompilationUnit visit(org.codehaus.groovy.control.SourceUnit unit, org.codehaus.groovy.ast.ModuleNode ast) throws GroovyParsingException - Throws:
GroovyParsingException
-
visitAndGetAnnotations
public List<org.openrewrite.java.tree.J.Annotation> visitAndGetAnnotations(org.codehaus.groovy.ast.AnnotatedNode node, org.openrewrite.groovy.GroovyParserVisitor.RewriteGroovyClassVisitor classVisitor) -
visitAnnotation
public org.openrewrite.java.tree.J.Annotation visitAnnotation(org.codehaus.groovy.ast.AnnotationNode annotation, org.openrewrite.groovy.GroovyParserVisitor.RewriteGroovyClassVisitor classVisitor)
-