public final class SimpleScalar extends java.lang.Object implements TemplateScalarModel, java.io.Serializable
This class is thread-safe.
SimpleSequence,
SimpleHash,
Serialized FormEMPTY_STRINGNOTHING| Constructor and Description |
|---|
SimpleScalar(java.lang.String value)
Constructs a SimpleScalar containing a string value.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAsString()
Returns the string representation of this model.
|
java.lang.String |
toString() |
public SimpleScalar(java.lang.String value)
value - the string value.public java.lang.String getAsString()
TemplateScalarModelnull, as that will cause exception.
(In classic-compatible mode the engine will convert null into empty string, though.)getAsString in interface TemplateScalarModelpublic java.lang.String toString()
toString in class java.lang.Object