Class GroovyParserVisitor

java.lang.Object
org.openrewrite.groovy.GroovyParserVisitor

public class GroovyParserVisitor extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    GroovyParserVisitor(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 Type
    Method
    Description
    visit(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.Annotation
    visitAnnotation(org.codehaus.groovy.ast.AnnotationNode annotation, org.openrewrite.groovy.GroovyParserVisitor.RewriteGroovyClassVisitor classVisitor)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)