Class SimpleScalar

    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleScalar​(java.lang.String value)
      Constructs a SimpleScalar containing a string value.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAsString()
      Returns the String representation of this model.
      static SimpleScalar newInstanceOrNull​(java.lang.String s)
      Same as calling the constructor, except that for a null parameter it returns null.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SimpleScalar

        public SimpleScalar​(java.lang.String value)
        Constructs a SimpleScalar containing a string value.
        Parameters:
        value - the string value. If this is null, its value in FTL will be "".
    • Method Detail

      • getAsString

        public java.lang.String getAsString()
        Description copied from interface: TemplateScalarModel
        Returns the String representation of this model. Returning null is illegal, and may cause exception in the calling code. (Except, in classic-compatible mode the engine will convert null into empty string.)
        Specified by:
        getAsString in interface TemplateScalarModel
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • newInstanceOrNull

        public static SimpleScalar newInstanceOrNull​(java.lang.String s)
        Same as calling the constructor, except that for a null parameter it returns null.
        Since:
        2.3.23