public abstract class YamlCommentReader extends YamlCommentMapper implements Closeable
Modifier and Type | Class and Description |
---|---|
protected static class |
YamlCommentReader.ReaderStage |
class |
YamlCommentReader.ReadingExplicitStyle |
static class |
YamlCommentReader.ReadingQuoteStyle |
Modifier and Type | Field and Description |
---|---|
protected boolean |
beginExplicit |
protected char |
currentChar |
protected String |
currentLine |
protected KeyTree.Node |
currentList |
protected KeyTree.Node |
currentNode |
protected YamlCommentReader.ReadingExplicitStyle |
explicitNotation |
protected int |
indent |
protected boolean |
isEscaping |
protected boolean |
isListElement |
protected boolean |
isLiteral |
protected String |
key |
protected int |
position |
protected YamlCommentReader.ReadingQuoteStyle |
quoteNotation |
protected YamlCommentReader.ReaderStage |
stage |
protected String |
trim |
keyTree, NO_COMMENTS
Modifier | Constructor and Description |
---|---|
protected |
YamlCommentReader(YamlConfigurationOptions options) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canStartComment() |
protected boolean |
canStartSpecialIndent(int indent) |
protected boolean |
checkSpecialChars() |
protected void |
checkSpecialLines(boolean wasLiteral,
int indent) |
protected void |
clearCurrentNode() |
protected void |
clearCurrentNodeIfNoComments() |
protected void |
endExplicitBlock() |
protected void |
endExplicitNotation() |
protected boolean |
hasChar() |
protected boolean |
hasKey() |
protected boolean |
hasNext() |
protected void |
inQuote(YamlCommentReader.ReadingQuoteStyle quoteStyle) |
protected boolean |
isBlank() |
protected boolean |
isComment() |
protected boolean |
isExplicit() |
protected boolean |
isExplicitChar() |
protected boolean |
isInQuote() |
protected boolean |
isListChar() |
protected boolean |
isLiteralChar() |
protected boolean |
isMultiline() |
protected boolean |
isSectionEnd() |
protected boolean |
isSectionKey() |
static boolean |
isSpace(char c) |
protected boolean |
nextChar() |
protected boolean |
nextIsSpace() |
protected boolean |
nextLine() |
protected char |
peek(int offset) |
protected void |
processLine() |
protected void |
processMultiline(boolean inQuoteBlock) |
protected int |
readIndent() |
protected int |
readIndent(boolean special) |
protected String |
readKey() |
protected void |
readKeyMultiline(StringBuilder keyBuilder) |
protected abstract String |
readLine() |
protected void |
readTag() |
protected void |
readValue() |
protected void |
readValueMultiline() |
protected void |
skipToEnd() |
String |
toString() |
protected KeyTree.Node |
track() |
protected KeyTree.Node |
track(int indent,
String key) |
protected KeyTree.Node |
trackExplicit() |
protected void |
trackListElement() |
clearNode, clearNodeIfNoComments, getComment, getComment, getKeyTree, getNode, getOrAddNode, getPriorityNode, getRawComment, getRawComment, options, removeComment, removeComment, setComment, setFormattedComment, setRawComment
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getComment, setComment
protected String currentLine
protected String trim
protected int indent
protected String key
protected int position
protected char currentChar
protected boolean isEscaping
protected boolean isLiteral
protected YamlCommentReader.ReadingQuoteStyle quoteNotation
protected boolean beginExplicit
protected YamlCommentReader.ReadingExplicitStyle explicitNotation
protected KeyTree.Node currentNode
protected KeyTree.Node currentList
protected boolean isListElement
protected YamlCommentReader.ReaderStage stage
protected YamlCommentReader(YamlConfigurationOptions options)
protected abstract String readLine() throws IOException
IOException
protected boolean nextLine() throws IOException
IOException
protected boolean nextChar()
protected boolean hasChar()
protected boolean hasNext()
protected char peek(int offset)
protected boolean isBlank()
public static boolean isSpace(char c)
protected boolean isComment()
protected boolean canStartComment()
protected boolean isInQuote()
protected boolean isExplicit()
protected void endExplicitNotation() throws IOException
IOException
protected void processLine() throws IOException
IOException
protected void processMultiline(boolean inQuoteBlock) throws IOException
IOException
protected void endExplicitBlock() throws IOException
IOException
protected boolean isLiteralChar()
protected void checkSpecialLines(boolean wasLiteral, int indent) throws IOException
IOException
protected boolean checkSpecialChars()
protected void inQuote(YamlCommentReader.ReadingQuoteStyle quoteStyle)
protected boolean isSectionKey()
protected void readTag()
protected int readIndent(boolean special)
protected int readIndent()
protected boolean canStartSpecialIndent(int indent)
protected boolean isListChar()
protected boolean isExplicitChar()
protected final boolean nextIsSpace()
protected final boolean isMultiline()
protected boolean hasKey()
protected String readKey() throws IOException
IOException
protected void readKeyMultiline(StringBuilder keyBuilder) throws IOException
IOException
protected void readValue() throws IOException
IOException
protected void readValueMultiline() throws IOException
IOException
protected void skipToEnd()
protected boolean isSectionEnd()
protected KeyTree.Node track() throws IOException
IOException
protected void trackListElement()
protected KeyTree.Node trackExplicit() throws IOException
IOException
protected KeyTree.Node track(int indent, String key)
protected void clearCurrentNode()
protected void clearCurrentNodeIfNoComments()
Copyright © 2023. All rights reserved.