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, trimkeyTree, 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(org.simpleyaml.configuration.comments.KeyTree.Node node,
              String sideComment) | 
| protected org.simpleyaml.configuration.comments.KeyTree.Node | track() | 
| protected String | trackBlockComment(org.simpleyaml.configuration.comments.KeyTree.Node node) | 
| protected void | trackBlockCommentExplicit(org.simpleyaml.configuration.comments.KeyTree.Node node) | 
| protected void | trackSideComment(org.simpleyaml.configuration.comments.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, trackListElementclearNode, clearNodeIfNoComments, getComment, getComment, getKeyTree, getNode, getOrAddNode, getPriorityNode, getRawComment, getRawComment, options, removeComment, removeComment, setComment, setFormattedComment, setRawCommentprotected final BufferedReader reader
protected StringBuilder blockComment
protected boolean blockCommentStarted
protected boolean headerParsed
public YamlCommentParser(YamlConfigurationOptions options, Reader reader)
public void parse()
           throws IOException
IOExceptionprotected String readLine() throws IOException
readLine in class YamlCommentReaderIOExceptionprotected void processLine()
                    throws IOException
processLine in class YamlCommentReaderIOExceptionprotected void appendLine()
protected void appendCommentLine()
protected org.simpleyaml.configuration.comments.KeyTree.Node track()
                                                            throws IOException
track in class YamlCommentReaderIOExceptionprotected void endExplicitBlock()
                         throws IOException
endExplicitBlock in class YamlCommentReaderIOExceptionprotected String trackBlockComment(org.simpleyaml.configuration.comments.KeyTree.Node node)
protected void trackBlockCommentExplicit(org.simpleyaml.configuration.comments.KeyTree.Node node)
public static String removeHeader(String blockComment, YamlConfigurationOptions options)
protected void trackSideComment(org.simpleyaml.configuration.comments.KeyTree.Node node)
                         throws IOException
IOExceptionprotected void setSideComment(org.simpleyaml.configuration.comments.KeyTree.Node node,
                              String sideComment)
protected void trackSideCommentBelow()
protected void processMultiline(boolean inQuoteBlock)
processMultiline in class YamlCommentReaderpublic void close()
           throws IOException
IOExceptionCopyright © 2023. All rights reserved.