Class SimpleScalar

    • Constructor Detail

      • SimpleScalar

        public SimpleScalar​(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 String getAsString()
        Description copied from interface: TemplateScalarModel
        Returns the string representation of this model. Don't return null, as that will cause exception. (In classic-compatible mode the engine will convert null into empty string, though.)
        Specified by:
        getAsString in interface TemplateScalarModel
      • newInstanceOrNull

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