public class YamlCommentParser extends YamlCommentReader
YamlCommentReader.ReaderStage, YamlCommentReader.ReadingExplicitStyle, YamlCommentReader.ReadingQuoteStyle
Modifier and Type | Field and Description |
---|---|
protected StringBuilder |
blockComment |
protected boolean |
blockCommentStarted |
protected boolean |
headerParsed |
protected BufferedReader |
reader |
beginExplicit, currentChar, currentLine, currentList, currentNode, explicitNotation, indent, isEscaping, isListElement, isLiteral, key, position, quoteNotation, stage, trim
keyTree, NO_COMMENTS
Constructor and Description |
---|
YamlCommentParser(YamlConfigurationOptions options,
Reader reader) |
Modifier and Type | Method and Description |
---|---|
protected void |
appendCommentLine() |
protected void |
appendLine() |
void |
close() |
protected void |
endExplicitBlock() |
void |
parse() |
protected void |
processLine() |
protected void |
processMultiline(boolean inQuoteBlock) |
protected String |
readLine() |
static String |
removeHeader(String blockComment,
YamlConfigurationOptions options) |
protected void |
setSideComment(KeyTree.Node node,
String sideComment) |
protected KeyTree.Node |
track() |
protected String |
trackBlockComment(KeyTree.Node node) |
protected void |
trackBlockCommentExplicit(KeyTree.Node node) |
protected void |
trackSideComment(KeyTree.Node node) |
protected void |
trackSideCommentBelow() |
canStartComment, canStartSpecialIndent, checkSpecialChars, checkSpecialLines, clearCurrentNode, clearCurrentNodeIfNoComments, endExplicitNotation, hasChar, hasKey, hasNext, inQuote, isBlank, isComment, isExplicit, isExplicitChar, isInQuote, isListChar, isLiteralChar, isMultiline, isSectionEnd, isSectionKey, isSpace, nextChar, nextIsSpace, nextLine, peek, readIndent, readIndent, readKey, readKeyMultiline, readTag, readValue, readValueMultiline, skipToEnd, toString, track, trackExplicit, 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 final BufferedReader reader
protected StringBuilder blockComment
protected boolean blockCommentStarted
protected boolean headerParsed
public YamlCommentParser(YamlConfigurationOptions options, Reader reader)
public void parse() throws IOException
IOException
protected String readLine() throws IOException
readLine
in class YamlCommentReader
IOException
protected void processLine() throws IOException
processLine
in class YamlCommentReader
IOException
protected void appendLine()
protected void appendCommentLine()
protected KeyTree.Node track() throws IOException
track
in class YamlCommentReader
IOException
protected void endExplicitBlock() throws IOException
endExplicitBlock
in class YamlCommentReader
IOException
protected String trackBlockComment(KeyTree.Node node)
protected void trackBlockCommentExplicit(KeyTree.Node node)
public static String removeHeader(String blockComment, YamlConfigurationOptions options)
protected void trackSideComment(KeyTree.Node node) throws IOException
IOException
protected void setSideComment(KeyTree.Node node, String sideComment)
protected void trackSideCommentBelow()
protected void processMultiline(boolean inQuoteBlock)
processMultiline
in class YamlCommentReader
public void close() throws IOException
IOException
Copyright © 2023. All rights reserved.