org.yaml.snakeyaml.nodes
public class ScalarNode extends Node
Scalar nodes form the leaves in the node graph.
endMark, resolved, useClassConstructor
Constructor and Description |
---|
ScalarNode(Tag tag,
boolean resolved,
String value,
Mark startMark,
Mark endMark,
Character style) |
ScalarNode(Tag tag,
String value,
Mark startMark,
Mark endMark,
Character style) |
Modifier and Type | Method and Description |
---|---|
NodeId |
getNodeId()
For error reporting.
|
Character |
getStyle()
Get scalar style of this node.
|
String |
getValue()
Value of this scalar.
|
String |
toString() |
equals, getEndMark, getStartMark, getTag, getType, hashCode, isResolved, isTwoStepsConstruction, setTag, setTwoStepsConstruction, setType, setUseClassConstructor, useClassConstructor
public Character getStyle()
ScalarEvent
,
Chapter 9. Scalar
Stylespublic String getValue()
Copyright © 2008–2015. All rights reserved.