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, getEndMark, getProperty, getStartMark, getTag, hashCode, isRecursive, setAnchor, setProperty, setRecursive, setTag
public 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#id2793652
public NodeType getNodeType()
getNodeType
in class Node
public String getValue()
public boolean isPlain()
Copyright © 2021 Hazelcast, Inc.. All rights reserved.