Class FormatItem

java.lang.Object
org.pgcodekeeper.core.formatter.FormatItem

public class FormatItem extends Object
Represents a single formatting operation to be applied to SQL text. Immutable class that describes a text modification at a specific position.
  • Constructor Details

    • FormatItem

      public FormatItem(int start, int length, String text)
      Constructs a new FormatItem describing a text modification.
      Parameters:
      start - The starting position in the original text (0-based index)
      length - The number of characters to replace
      text - The new text to insert at the position
  • Method Details

    • getStart

      public int getStart()
    • getLength

      public int getLength()
    • getText

      public String getText()