Class Text

    • Field Detail

      • value

        protected final String value
    • Constructor Detail

      • Text

        protected Text​(String value)
    • 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
      • size

        public int size()
      • stringValue

        public String stringValue()
        Description copied from class: Value
        Converts this Value into a String value, if possible.
        Overrides:
        stringValue in class Value
      • stringValue

        public String stringValue​(String orElse)
        Description copied from class: Value
        Converts this Value into a String value, if possible; otherwise returns orElse if this Value can't be converted into a string value.
        Overrides:
        stringValue in class Value
      • byteValue

        public byte byteValue()
        Description copied from class: Value
        Converts this Value into a primitive byte value, if possible.
        Overrides:
        byteValue in class Value
      • byteValue

        public byte byteValue​(byte orElse)
        Description copied from class: Value
        Converts this Value into a primitive byte value, if possible; otherwise returns orElse if this Value can't be converted into a primitive byte value.
        Overrides:
        byteValue in class Value
      • shortValue

        public short shortValue()
        Description copied from class: Value
        Converts this Value into a primitive short value, if possible.
        Overrides:
        shortValue in class Value
      • shortValue

        public short shortValue​(short orElse)
        Description copied from class: Value
        Converts this Value into a primitive short value, if possible; otherwise returns orElse if this Value can't be converted into a primitive short value.
        Overrides:
        shortValue in class Value
      • intValue

        public int intValue()
        Description copied from class: Value
        Converts this Value into a primitive int value, if possible.
        Overrides:
        intValue in class Value
      • intValue

        public int intValue​(int orElse)
        Description copied from class: Value
        Converts this Value into a primitive int value, if possible; otherwise returns orElse if this Value can't be converted into a primitive int value.
        Overrides:
        intValue in class Value
      • longValue

        public long longValue()
        Description copied from class: Value
        Converts this Value into a primitive long value, if possible.
        Overrides:
        longValue in class Value
      • longValue

        public long longValue​(long orElse)
        Description copied from class: Value
        Converts this Value into a primitive long value, if possible; otherwise returns orElse if this Value can't be converted into a primitive long value.
        Overrides:
        longValue in class Value
      • floatValue

        public float floatValue()
        Description copied from class: Value
        Converts this Value into a primitive float value, if possible.
        Overrides:
        floatValue in class Value
      • floatValue

        public float floatValue​(float orElse)
        Description copied from class: Value
        Converts this Value into a primitive float value, if possible; otherwise returns orElse if this Value can't be converted into a primitive float value.
        Overrides:
        floatValue in class Value
      • doubleValue

        public double doubleValue()
        Description copied from class: Value
        Converts this Value into a primitive double value, if possible.
        Overrides:
        doubleValue in class Value
      • doubleValue

        public double doubleValue​(double orElse)
        Description copied from class: Value
        Converts this Value into a primitive double value, if possible; otherwise returns orElse if this Value can't be converted into a primitive double value.
        Overrides:
        doubleValue in class Value
      • integerValue

        public BigInteger integerValue()
        Description copied from class: Value
        Converts this Value into a BigInteger value, if possible.
        Overrides:
        integerValue in class Value
      • integerValue

        public BigInteger integerValue​(BigInteger orElse)
        Description copied from class: Value
        Converts this Value into a BigInteger value, if possible; otherwise returns orElse if this Value can't be converted into a BigInteger value.
        Overrides:
        integerValue in class Value
      • numberValue

        public Number numberValue()
        Description copied from class: Value
        Converts this Value into a Number object, if possible.
        Overrides:
        numberValue in class Value
      • numberValue

        public Number numberValue​(Number orElse)
        Description copied from class: Value
        Converts this Value into a Number object, if possible; otherwise returns orElse if this Value can't be converted into a Number object.
        Overrides:
        numberValue in class Value
      • charValue

        public char charValue()
        Description copied from class: Value
        Converts this Value into a primitive char value, if possible.
        Overrides:
        charValue in class Value
      • charValue

        public char charValue​(char orElse)
        Description copied from class: Value
        Converts this Value into a primitive char value, if possible; otherwise returns orElse if this Value can't be converted into a primitive char value.
        Overrides:
        charValue in class Value
      • booleanValue

        public boolean booleanValue()
        Description copied from class: Value
        Converts this Value into a primitive boolean value, if possible.
        Overrides:
        booleanValue in class Value
      • booleanValue

        public boolean booleanValue​(boolean orElse)
        Description copied from class: Value
        Converts this Value into a primitive boolean value, if possible; otherwise returns orElse if this Value can't be converted into a primitive boolean value.
        Overrides:
        booleanValue in class Value
      • plus

        public Text plus​(Text that)
      • commit

        public Text commit()
        Description copied from class: Item
        Flags this Item as immutable, recursively if it is a Record, then returns this Item.
        Overrides:
        commit in class Value
      • 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
      • equals

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

        public final 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 <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.
      • empty

        public static Text empty()
      • from

        public static Text from​(String value)
      • fromObject

        public static Text fromObject​(Object object)