- java.lang.Object
-
- swim.structure.Item
-
- swim.structure.Field
-
- swim.structure.Attr
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidalias()ItembitwiseAnd(Item that)ItembitwiseNot()ItembitwiseOr(Item that)ItembitwiseXor(Item that)Attrbranch()Attrcommit()intcompareTo(Item other)voiddebug(Output<?> output)Writes a developer readable, debug-formatted string representation of this object tooutput.Itemdivide(Item that)booleanequals(Object other)Itemevaluate(Interpreter interpreter)inthashCode()Iteminverse()booleanisAliased()booleanisConstant()booleanisMutable()Textkey()Returns the key component of thisField.booleankeyEquals(Object key)Itemminus(Item that)Itemmodulo(Item that)Stringname()Itemnegative()Itemnot()static Attrof(String key)static Attrof(String key, boolean value)static Attrof(String key, double value)static Attrof(String key, float value)static Attrof(String key, int value)static Attrof(String key, long value)static Attrof(String key, String value)static Attrof(String key, Value value)static Attrof(Text key)static Attrof(Text key, boolean value)static Attrof(Text key, double value)static Attrof(Text key, float value)static Attrof(Text key, int value)static Attrof(Text key, long value)static Attrof(Text key, String value)static Attrof(Text key, Value value)Itemplus(Item that)Itempositive()ValuesetValue(Value newValue)Sets the value of thisFieldto the newvalue, returning the old value.Itemsubstitute(Interpreter interpreter)Itemtimes(Item that)inttypeOrder()Returns the heterogeneous sort order of thisItem.AttrupdatedValue(Value value)Returns a copy of thisFieldwith the updatedvalue.Valuevalue()Returns the value component of thisField.-
Methods inherited from class swim.structure.Field
and, and, body, booleanValue, booleanValue, byteValue, byteValue, charValue, charValue, conditional, conditional, contains, containsKey, containsKey, containsValue, doubleValue, doubleValue, flattened, floatValue, floatValue, get, get, getAttr, getAttr, getField, getField, getItem, getKey, getSlot, getSlot, getValue, head, header, headers, integerValue, integerValue, intValue, intValue, isDefined, isDefinite, isDistinct, lambda, length, longValue, longValue, numberValue, numberValue, of, or, or, removed, removed, shortValue, shortValue, stringValue, stringValue, tag, tail, target, toValue, unflattened
-
Methods inherited from class swim.structure.Item
absent, appended, appended, appended, appended, appended, appended, appended, appended, cast, cast, coerce, coerce, concat, display, empty, eq, evaluate, extant, filter, filter, fromObject, ge, globalScope, gt, invoke, iterator, le, lt, max, min, ne, precedence, prepended, prepended, prepended, prepended, prepended, prepended, prepended, prepended, substitute, toString, updated, updated, updated, updated, updated, updated, updated, updated, updated, updated, updated, updated, updated, updated, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
isConstant
public boolean isConstant()
Description copied from class:Item- Specified by:
isConstantin classItem
-
name
public String name()
-
value
public Value value()
Description copied from class:FieldReturns the value component of thisField.
-
setValue
public Value setValue(Value newValue)
Description copied from class:FieldSets the value of thisFieldto the newvalue, returning the old value.
-
updatedValue
public Attr updatedValue(Value value)
Description copied from class:FieldReturns a copy of thisFieldwith the updatedvalue.- Specified by:
updatedValuein classField
-
bitwiseXor
public Item bitwiseXor(Item that)
- Specified by:
bitwiseXorin classItem
-
bitwiseAnd
public Item bitwiseAnd(Item that)
- Specified by:
bitwiseAndin classItem
-
bitwiseNot
public Item bitwiseNot()
- Specified by:
bitwiseNotin classItem
-
evaluate
public Item evaluate(Interpreter interpreter)
-
substitute
public Item substitute(Interpreter interpreter)
- Overrides:
substitutein classItem
-
typeOrder
public int typeOrder()
Description copied from class:ItemReturns the heterogeneous sort order of thisItem. Used to impose a total order on the set of all items. When comparing two items of different types, the items order according to theirtypeOrder.
-
compareTo
public int compareTo(Item other)
- Specified by:
compareToin interfaceComparable<Item>- Specified by:
compareToin classItem
-
equals
public boolean equals(Object other)
-
hashCode
public int hashCode()
-
debug
public void debug(Output<?> output)
Description copied from interface:DebugWrites a developer readable, debug-formatted string representation of this object tooutput.
-
-