Package org.mapstruct.ap.internal.writer
Class IndentationCorrectingWriter.StateContext
- java.lang.Object
-
- org.mapstruct.ap.internal.writer.IndentationCorrectingWriter.StateContext
-
- Enclosing class:
- IndentationCorrectingWriter
private static class IndentationCorrectingWriter.StateContext extends java.lang.ObjectKeeps the current context of parsing the given character buffer.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) char[]characters(package private) intconsecutiveLineBreaksThe number of consecutive line-breaks when withinIndentationCorrectingWriter.State.AFTER_LINE_BREAK.(package private) intcurrentIndexThe current position within the buffer.private intindentationLevelKeeps track of the current indentation level, as implied by brace characters.(package private) intlastStateChangeThe position at which when the current state was entered.(package private) java.io.Writerwriter
-
Constructor Summary
Constructors Constructor Description StateContext(java.io.Writer writer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voiddecrementIndentationLevel()(package private) intgetIndentationLevel()(package private) voidincrementIndentationLevel()(package private) voidreset(char[] characters, int off)
-
-
-
Field Detail
-
writer
final java.io.Writer writer
-
characters
char[] characters
-
lastStateChange
int lastStateChange
The position at which when the current state was entered.
-
currentIndex
int currentIndex
The current position within the buffer.
-
indentationLevel
private int indentationLevel
Keeps track of the current indentation level, as implied by brace characters.
-
consecutiveLineBreaks
int consecutiveLineBreaks
The number of consecutive line-breaks when withinIndentationCorrectingWriter.State.AFTER_LINE_BREAK.
-
-