public final class SimpleScalar extends Object implements TemplateScalarModel, Serializable
This class is thread-safe.
SimpleSequence
,
SimpleHash
,
Serialized FormEMPTY_STRING
NOTHING
Constructor and Description |
---|
SimpleScalar(String value)
Constructs a SimpleScalar containing a string value.
|
public SimpleScalar(String value)
value
- the string value.public String getAsString()
TemplateScalarModel
null
, as that will cause exception.
(In classic-compatible mode the engine will convert null
into empty string, though.)getAsString
in interface TemplateScalarModel