Package org.pgcodekeeper.core.formatter
Class FormatItem
java.lang.Object
org.pgcodekeeper.core.formatter.FormatItem
Represents a single formatting operation to be applied to SQL text.
Immutable class that describes a text modification at a specific position.
-
Constructor Summary
ConstructorsConstructorDescriptionFormatItem(int start, int length, String text) Constructs a new FormatItem describing a text modification. -
Method Summary
-
Constructor Details
-
FormatItem
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 replacetext- The new text to insert at the position
-
-
Method Details
-
getStart
public int getStart() -
getLength
public int getLength() -
getText
-