Class NormalizeFormatVisitor<P>

java.lang.Object
org.openrewrite.TreeVisitor<org.openrewrite.java.tree.J,P>
org.openrewrite.java.JavaVisitor<P>
org.openrewrite.kotlin.KotlinVisitor<P>
org.openrewrite.kotlin.KotlinIsoVisitor<P>
org.openrewrite.kotlin.format.NormalizeFormatVisitor<P>

public class NormalizeFormatVisitor<P> extends KotlinIsoVisitor<P>
Ensures that whitespace is on the outermost AST element possible.
  • Constructor Details

    • NormalizeFormatVisitor

      public NormalizeFormatVisitor(@Nullable @Nullable org.openrewrite.Tree stopAfter)
    • NormalizeFormatVisitor

      public NormalizeFormatVisitor()
  • Method Details

    • visitClassDeclaration

      public org.openrewrite.java.tree.J.ClassDeclaration visitClassDeclaration(org.openrewrite.java.tree.J.ClassDeclaration classDecl, P p)
      Overrides:
      visitClassDeclaration in class KotlinIsoVisitor<P>
    • visitMethodDeclaration

      public org.openrewrite.java.tree.J.MethodDeclaration visitMethodDeclaration(org.openrewrite.java.tree.J.MethodDeclaration method, P p)
      Overrides:
      visitMethodDeclaration in class KotlinIsoVisitor<P>
    • visitVariableDeclarations

      public org.openrewrite.java.tree.J.VariableDeclarations visitVariableDeclarations(org.openrewrite.java.tree.J.VariableDeclarations multiVariable, P p)
      Overrides:
      visitVariableDeclarations in class KotlinIsoVisitor<P>
    • postVisit

      @Nullable public @Nullable org.openrewrite.java.tree.J postVisit(org.openrewrite.java.tree.J tree, P p)
      Overrides:
      postVisit in class org.openrewrite.TreeVisitor<org.openrewrite.java.tree.J,P>
    • visit

      @Nullable public @Nullable org.openrewrite.java.tree.J visit(@Nullable @Nullable org.openrewrite.Tree tree, P p)
      Overrides:
      visit in class org.openrewrite.TreeVisitor<org.openrewrite.java.tree.J,P>