Package org.snakeyaml.engine.v2.events
Class CommentEvent
java.lang.Object
org.snakeyaml.engine.v2.events.Event
org.snakeyaml.engine.v2.events.CommentEvent
Marks a comment block value.
-
Nested Class Summary
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCommentEvent
(CommentType type, String value, Optional<Mark> startMark, Optional<Mark> endMark) -
Method Summary
Methods inherited from class org.snakeyaml.engine.v2.events.Event
getEndMark, getStartMark
-
Field Details
-
type
-
value
-
-
Constructor Details
-
CommentEvent
-
-
Method Details
-
getValue
String representation of the value.Without quotes and escaping.
- Returns:
- Value a comment line string without the leading '#' or a blank line.
-
getCommentType
The comment type.- Returns:
- the commentType.
-
getEventId
Description copied from class:Event
Get the type (kind) if this Event- Specified by:
getEventId
in classEvent
- Returns:
- the ID of this Event
-
toString
-