Package org.snakeyaml.engine.v2.events
Class CommentEvent
- java.lang.Object
-
- org.snakeyaml.engine.v2.events.Event
-
- org.snakeyaml.engine.v2.events.CommentEvent
-
public final class CommentEvent extends Event
Marks a comment block value.
-
-
Constructor Summary
Constructors Constructor Description CommentEvent(CommentType type, String value, Optional<Mark> startMark, Optional<Mark> endMark)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommentTypegetCommentType()The comment type.Event.IDgetEventId()Get the type (kind) if this EventStringgetValue()String representation of the value.StringtoString()-
Methods inherited from class org.snakeyaml.engine.v2.events.Event
getEndMark, getStartMark
-
-
-
-
Method Detail
-
getValue
public String getValue()
String representation of the value.Without quotes and escaping.
- Returns:
- Value a comment line string without the leading '#' or a blank line.
-
getCommentType
public CommentType getCommentType()
The comment type.- Returns:
- the commentType.
-
getEventId
public Event.ID getEventId()
Description copied from class:EventGet the type (kind) if this Event- Specified by:
getEventIdin classEvent- Returns:
- the ID of this Event
-
-