Class YamlCommentParser
java.lang.Object
org.simpleyaml.configuration.comments.YamlCommentMapper
org.simpleyaml.configuration.comments.YamlCommentReader
org.simpleyaml.configuration.comments.YamlCommentParser
- All Implemented Interfaces:
Closeable,AutoCloseable,Commentable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.simpleyaml.configuration.comments.YamlCommentReader
YamlCommentReader.ReaderStage, YamlCommentReader.ReadingExplicitStyle, YamlCommentReader.ReadingQuoteStyle -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringBuilderprotected booleanprotected booleanprotected final BufferedReaderFields inherited from class org.simpleyaml.configuration.comments.YamlCommentReader
beginExplicit, currentChar, currentLine, currentList, currentNode, explicitNotation, indent, isEscaping, isListElement, isLiteral, key, position, quoteNotation, stage, trimFields inherited from class org.simpleyaml.configuration.comments.YamlCommentMapper
keyTree, NO_COMMENTS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidvoidclose()protected voidvoidparse()protected voidprotected voidprocessMultiline(boolean inQuoteBlock) protected StringreadLine()static StringremoveHeader(String blockComment, YamlConfigurationOptions options) protected voidsetSideComment(KeyTree.Node node, String sideComment) protected KeyTree.Nodetrack()protected Stringprotected voidprotected voidtrackSideComment(KeyTree.Node node) protected voidMethods inherited from class org.simpleyaml.configuration.comments.YamlCommentReader
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, trackListElementMethods inherited from class org.simpleyaml.configuration.comments.YamlCommentMapper
clearNode, clearNodeIfNoComments, getComment, getComment, getKeyTree, getNode, getOrAddNode, getPriorityNode, getRawComment, getRawComment, options, removeComment, removeComment, setComment, setFormattedComment, setRawCommentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.simpleyaml.configuration.comments.Commentable
getComment, setComment
-
Field Details
-
reader
-
blockComment
-
blockCommentStarted
protected boolean blockCommentStarted -
headerParsed
protected boolean headerParsed
-
-
Constructor Details
-
YamlCommentParser
-
-
Method Details
-
parse
- Throws:
IOException
-
readLine
- Specified by:
readLinein classYamlCommentReader- Throws:
IOException
-
processLine
- Overrides:
processLinein classYamlCommentReader- Throws:
IOException
-
appendLine
protected void appendLine() -
appendCommentLine
protected void appendCommentLine() -
track
- Overrides:
trackin classYamlCommentReader- Throws:
IOException
-
endExplicitBlock
- Overrides:
endExplicitBlockin classYamlCommentReader- Throws:
IOException
-
trackBlockComment
-
trackBlockCommentExplicit
-
removeHeader
-
trackSideComment
- Throws:
IOException
-
setSideComment
-
trackSideCommentBelow
protected void trackSideCommentBelow() -
processMultiline
protected void processMultiline(boolean inQuoteBlock) - Overrides:
processMultilinein classYamlCommentReader
-
close
- Throws:
IOException
-