Class ShiftFormat


  • public class ShiftFormat
    extends java.lang.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 Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <J2 extends J>
      J2
      indent​(J j, org.openrewrite.Cursor cursor, int shift)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • indent

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