Class Value

java.lang.Object
meteordevelopment.starscript.value.Value

public class Value extends Object
Class that holds any starscript value.
  • Field Details

  • Method Details

    • null_

      public static Value null_()
    • bool

      public static Value bool(boolean bool)
    • number

      public static Value number(double number)
    • string

      public static Value string(String string)
    • function

      public static Value function(SFunction function)
    • map

      public static Value map(ValueMap fields)
    • isNull

      public boolean isNull()
    • isBool

      public boolean isBool()
    • isNumber

      public boolean isNumber()
    • isString

      public boolean isString()
    • isFunction

      public boolean isFunction()
    • isMap

      public boolean isMap()
    • getBool

      public boolean getBool()
    • getNumber

      public double getNumber()
    • getString

      public String getString()
    • getFunction

      public SFunction getFunction()
    • getMap

      public ValueMap getMap()
    • isTruthy

      public boolean isTruthy()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object