Class ShiftFormat

java.lang.Object
org.openrewrite.java.format.ShiftFormat

public class ShiftFormat extends Object
Less commonly used than AutoFormat, but useful in cases when a block of code is being moved definitively a certain number of indentation levels left or right, such as when unwrapping a block or conditional statement.
  • Method Details

    • indent

      public static <J2 extends org.openrewrite.java.tree.J> J2 indent(org.openrewrite.java.tree.J j, org.openrewrite.Cursor cursor, int shift)