Class Num

    • Method Detail

      • isConstant

        public boolean isConstant()
        Description copied from class: Item
        Returns true if this Item always evaluates to the same Item.
        Specified by:
        isConstant in class Item
      • isUint32

        public boolean isUint32()
      • isUint64

        public boolean isUint64()
      • isNaN

        public abstract boolean isNaN()
      • isInfinite

        public abstract boolean isInfinite()
      • isValidByte

        public abstract boolean isValidByte()
      • isValidShort

        public abstract boolean isValidShort()
      • isValidInt

        public abstract boolean isValidInt()
      • isValidLong

        public abstract boolean isValidLong()
      • isValidFloat

        public abstract boolean isValidFloat()
      • isValidDouble

        public abstract boolean isValidDouble()
      • isValidInteger

        public abstract boolean isValidInteger()
      • stringValue

        public abstract String stringValue()
        Converts this Num into a String value.
        Overrides:
        stringValue in class Value
      • byteValue

        public abstract byte byteValue()
        Converts this Num into a primitive byte value.
        Overrides:
        byteValue in class Value
      • byteValue

        public byte byteValue​(byte orElse)
        Converts this Num into a primitive byte value; equivalent to byteValue().
        Overrides:
        byteValue in class Value
      • shortValue

        public abstract short shortValue()
        Converts this Num into a primitive short value.
        Overrides:
        shortValue in class Value
      • shortValue

        public short shortValue​(short orElse)
        Converts this Num into a primitive short value; equivalent shortValue().
        Overrides:
        shortValue in class Value
      • intValue

        public abstract int intValue()
        Converts this Num into a primitive int value.
        Overrides:
        intValue in class Value
      • intValue

        public int intValue​(int orElse)
        Converts this Num into a primitive int value; equivalent to intValue().
        Overrides:
        intValue in class Value
      • longValue

        public abstract long longValue()
        Converts this Num into a primitive long value.
        Overrides:
        longValue in class Value
      • longValue

        public long longValue​(long orElse)
        Converts this Num into a primitive long value; equivalent to longValue().
        Overrides:
        longValue in class Value
      • floatValue

        public abstract float floatValue()
        Converts this Num into a primitive float value.
        Overrides:
        floatValue in class Value
      • floatValue

        public float floatValue​(float orElse)
        Converts this Num into a primitive float value; equivalent to floatValue().
        Overrides:
        floatValue in class Value
      • doubleValue

        public abstract double doubleValue()
        Converts this Num into a primitive double value.
        Overrides:
        doubleValue in class Value
      • doubleValue

        public double doubleValue​(double orElse)
        Converts this Num into a primitive double value; equivalent to doubleValue().
        Overrides:
        doubleValue in class Value
      • integerValue

        public abstract BigInteger integerValue()
        Converts this Num into a BigInteger value.
        Overrides:
        integerValue in class Value
      • numberValue

        public abstract Number numberValue()
        Converts this Num into a Number object.
        Overrides:
        numberValue in class Value
      • charValue

        public abstract char charValue()
        Converts this Value into a primitive char value.
        Overrides:
        charValue in class Value
      • charValue

        public char charValue​(char orElse)
        Converts this Value into a primitive char value; equivalent to charValue().
        Overrides:
        charValue in class Value
      • booleanValue

        public abstract boolean booleanValue()
        Converts this Value into a primitive boolean value.
        Overrides:
        booleanValue in class Value
      • booleanValue

        public boolean booleanValue​(boolean orElse)
        Converts this Value into a primitive boolean value; equivalent to booleanValue().
        Overrides:
        booleanValue in class Value
      • bitwiseOr

        public abstract Value bitwiseOr​(Num that)
      • bitwiseXor

        public abstract Value bitwiseXor​(Num that)
      • bitwiseAnd

        public abstract Value bitwiseAnd​(Num that)
      • plus

        public abstract Num plus​(Num that)
      • minus

        public abstract Num minus​(Num that)
      • times

        public abstract Num times​(Num that)
      • divide

        public abstract Num divide​(Num that)
      • modulo

        public abstract Num modulo​(Num that)
      • negative

        public abstract Num negative()
        Overrides:
        negative in class Value
      • inverse

        public abstract Num inverse()
        Overrides:
        inverse in class Value
      • abs

        public abstract Num abs()
      • ceil

        public abstract Num ceil()
      • floor

        public abstract Num floor()
      • round

        public abstract Num round()
      • sqrt

        public abstract Num sqrt()
      • pow

        public abstract Num pow​(Num that)
      • max

        public Num max​(Num that)
      • min

        public Num min​(Num that)
      • typeOrder

        public int typeOrder()
        Description copied from class: Item
        Returns the heterogeneous sort order of this Item. Used to impose a total order on the set of all items. When comparing two items of different types, the items order according to their typeOrder.
        Specified by:
        typeOrder in class Item
      • compareTo

        public int compareTo​(Num that)
      • equals

        public boolean equals​(Object other)
        Specified by:
        equals in class Item
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in class Item
      • debug

        public <T> Output<T> debug​(Output<T> output)
        Description copied from interface: Debug
        Writes a developer readable, debug-formatted string representation of this object to output.
        Specified by:
        debug in interface Debug
        Specified by:
        debug in class Item
        Returns:
        the continuation of the output.
      • display

        public abstract <T> Output<T> display​(Output<T> output)
        Description copied from interface: Display
        Writes a human readable, display-formatted string representation of this object to output.
        Specified by:
        display in interface Display
        Overrides:
        display in class Item
        Returns:
        the continuation of the output.
      • from

        public static Num from​(int value)
      • from

        public static Num from​(long value)
      • from

        public static Num from​(float value)
      • from

        public static Num from​(double value)
      • from

        public static Num from​(Number value)
      • from

        public static Num from​(char value)
      • from

        public static Num from​(String value)
      • uint32

        public static Num uint32​(int value)
      • uint64

        public static Num uint64​(long value)