Package org.yaml.snakeyaml.events
Class CommentEvent
java.lang.Object
org.yaml.snakeyaml.events.Event
org.yaml.snakeyaml.events.CommentEvent
Marks a comment block value.
-
Nested Class Summary
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.yaml.snakeyaml.events.Event
equals, getEndMark, getStartMark, hashCode, is, toString
-
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.
-
getArguments
Description copied from class:Event
Generate human readable representation of the Event- Overrides:
getArguments
in classEvent
- Returns:
- representation fore humans
- See Also:
-
- "__repr__ for Event in PyYAML"
-
getEventId
Description copied from class:Event
Get the type (kind) if this Event- Specified by:
getEventId
in classEvent
- Returns:
- the ID of this Event
-