Class Slot

    • 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
      • key

        public Value key()
        Description copied from class: Field
        Returns the key component of this Field.
        Specified by:
        key in class Field
      • value

        public Value value()
        Description copied from class: Field
        Returns the value component of this Field.
        Specified by:
        value in class Field
      • updatedValue

        public Slot updatedValue​(Value value)
        Description copied from class: Field
        Returns a copy of this Field with the updated value.
        Specified by:
        updatedValue in class Field
      • not

        public Item not()
        Specified by:
        not in class Item
      • isAliased

        public boolean isAliased()
        Specified by:
        isAliased in class Item
      • isMutable

        public boolean isMutable()
        Specified by:
        isMutable in class Item
      • alias

        public void alias()
        Specified by:
        alias in class Item
      • commit

        public Slot commit()
        Description copied from class: Item
        Flags this Item as immutable, recursively if it is a Record, then returns this Item.
        Specified by:
        commit in class Field
      • 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
      • 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.
      • of

        public static Slot of​(Value key,
                              int value)
      • of

        public static Slot of​(Value key,
                              long value)
      • of

        public static Slot of​(Value key,
                              float value)
      • of

        public static Slot of​(Value key,
                              double value)
      • of

        public static Slot of​(Value key,
                              boolean value)
      • of

        public static Slot of​(String key,
                              int value)
      • of

        public static Slot of​(String key,
                              long value)
      • of

        public static Slot of​(String key,
                              float value)
      • of

        public static Slot of​(String key,
                              double value)
      • of

        public static Slot of​(String key,
                              boolean value)