Package org.snakeyaml.engine.v2.nodes
Class ScalarNode
java.lang.Object
org.snakeyaml.engine.v2.nodes.Node
org.snakeyaml.engine.v2.nodes.ScalarNode
Represents a scalar node.
Scalar nodes form the leaves in the node graph.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionScalarNode
(Tag tag, boolean resolved, String value, ScalarStyle style, Optional<Mark> startMark, Optional<Mark> endMark) ScalarNode
(Tag tag, String value, ScalarStyle style) -
Method Summary
Methods inherited from class org.snakeyaml.engine.v2.nodes.Node
equals, getAnchor, getBlockComments, getEndComments, getEndMark, getInLineComments, getProperty, getStartMark, getTag, hashCode, isRecursive, setAnchor, setBlockComments, setEndComments, setInLineComments, setProperty, setRecursive, setTag
-
Field Details
-
style
-
value
-
-
Constructor Details
-
ScalarNode
-
ScalarNode
-
-
Method Details
-
getScalarStyle
Get scalar style of this node.- Returns:
- style of this scalar node
- See Also:
-
getNodeType
- Specified by:
getNodeType
in classNode
- Returns:
- scalar, sequence, mapping
-
getValue
Value of this scalar.- Returns:
- Scalar's value.
-
toString
-
isPlain
public boolean isPlain()
-