Class ConfigDocument.CommentMove

java.lang.Object
com.ultikits.ultitools.config.document.ConfigDocument.CommentMove
Enclosing class:
ConfigDocument

static final class ConfigDocument.CommentMove extends Object
One comment line to re-indent: where the reader found it, and what must be there for the move to apply.
  • Field Details

    • line

      private final int line
    • column

      private final int column
    • target

      private final int target
    • expected

      private final String expected
  • Constructor Details

    • CommentMove

      CommentMove(int line, int column, int target, String expected)
      Parameters:
      line - the line, numbered as SnakeYAML's reader numbers it (0-based)
      column - the column of its # in the emitted text
      target - the column to write it at
      expected - the line's exact text from its # to the line break: "#" + the comment