public class ScalarNode extends Node
Scalar nodes form the leaves in the node graph.
| Constructor and Description |
|---|
ScalarNode(Tag tag,
boolean resolved,
String value,
ScalarStyle style,
Optional<Mark> startMark,
Optional<Mark> endMark) |
ScalarNode(Tag tag,
String value,
ScalarStyle style) |
| Modifier and Type | Method and Description |
|---|---|
NodeType |
getNodeType() |
ScalarStyle |
getScalarStyle()
Get scalar style of this node.
|
String |
getValue()
Value of this scalar.
|
boolean |
isPlain() |
String |
toString() |
equals, getAnchor, getBlockComments, getEndComments, getEndMark, getInLineComments, getProperty, getStartMark, getTag, hashCode, isRecursive, setAnchor, setBlockComments, setEndComments, setInLineComments, setProperty, setRecursive, setTagpublic ScalarNode(Tag tag, boolean resolved, String value, ScalarStyle style, Optional<Mark> startMark, Optional<Mark> endMark)
public ScalarNode(Tag tag, String value, ScalarStyle style)
public ScalarStyle getScalarStyle()
Flow styles - https://yaml.org/spec/1.2/spec.html#id2786942
Block styles - https://yaml.org/spec/1.2/spec.html#id2793652public NodeType getNodeType()
getNodeType in class Nodepublic String getValue()
public boolean isPlain()
Copyright © 2018–2022. All rights reserved.