java.lang.Object
me.topchetoeu.j2s.runtime.values.primitives.BoolValue
All Implemented Interfaces:
PrimitiveValue, Value

public final class BoolValue extends Object implements PrimitiveValue
  • Field Details

    • TRUE

      public static final BoolValue TRUE
    • FALSE

      public static final BoolValue FALSE
    • value

      public final boolean value
  • Method Details

    • type

      public StringValue type()
      Specified by:
      type in interface Value
    • toBoolean

      public boolean toBoolean()
      Specified by:
      toBoolean in interface Value
    • toNumber

      public NumberValue toNumber(me.topchetoeu.j2s.common.Environment ext)
      Specified by:
      toNumber in interface Value
    • toString

      public String toString(me.topchetoeu.j2s.common.Environment ext)
      Specified by:
      toString in interface Value
    • getPrototype

      public ObjectValue getPrototype(me.topchetoeu.j2s.common.Environment env)
      Specified by:
      getPrototype in interface Value
    • hashCode

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

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • of

      public static BoolValue of(boolean val)