- 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 void
alias()
Item
bitwiseAnd(Item that)
Item
bitwiseNot()
Item
bitwiseOr(Item that)
Item
bitwiseXor(Item that)
Attr
branch()
Attr
commit()
int
compareTo(Item other)
<T> Output<T>
debug(Output<T> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.Item
divide(Item that)
boolean
equals(Object other)
Item
evaluate(Interpreter interpreter)
int
hashCode()
Item
inverse()
boolean
isAliased()
boolean
isConstant()
boolean
isMutable()
Text
key()
Returns the key component of thisField
.boolean
keyEquals(Object key)
Item
minus(Item that)
Item
modulo(Item that)
String
name()
Item
negative()
Item
not()
static Attr
of(String key)
static Attr
of(String key, boolean value)
static Attr
of(String key, double value)
static Attr
of(String key, float value)
static Attr
of(String key, int value)
static Attr
of(String key, long value)
static Attr
of(String key, String value)
static Attr
of(String key, Value value)
static Attr
of(Text key)
static Attr
of(Text key, boolean value)
static Attr
of(Text key, double value)
static Attr
of(Text key, float value)
static Attr
of(Text key, int value)
static Attr
of(Text key, long value)
static Attr
of(Text key, String value)
static Attr
of(Text key, Value value)
Item
plus(Item that)
Item
positive()
Value
setValue(Value newValue)
Sets the value of thisField
to the newvalue
, returning the old value.Item
substitute(Interpreter interpreter)
Item
times(Item that)
int
typeOrder()
Returns the heterogeneous sort order of thisItem
.Attr
updatedValue(Value value)
Returns a copy of thisField
with the updatedvalue
.Value
value()
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:
isConstant
in classItem
-
name
public String name()
-
value
public Value value()
Description copied from class:Field
Returns the value component of thisField
.
-
setValue
public Value setValue(Value newValue)
Description copied from class:Field
Sets the value of thisField
to the newvalue
, returning the old value.
-
updatedValue
public Attr updatedValue(Value value)
Description copied from class:Field
Returns a copy of thisField
with the updatedvalue
.- Specified by:
updatedValue
in classField
-
bitwiseXor
public Item bitwiseXor(Item that)
- Specified by:
bitwiseXor
in classItem
-
bitwiseAnd
public Item bitwiseAnd(Item that)
- Specified by:
bitwiseAnd
in classItem
-
bitwiseNot
public Item bitwiseNot()
- Specified by:
bitwiseNot
in classItem
-
evaluate
public Item evaluate(Interpreter interpreter)
-
substitute
public Item substitute(Interpreter interpreter)
- Overrides:
substitute
in classItem
-
typeOrder
public int typeOrder()
Description copied from class:Item
Returns 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:
compareTo
in interfaceComparable<Item>
- Specified by:
compareTo
in classItem
-
equals
public boolean equals(Object other)
-
hashCode
public int hashCode()
-
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 tooutput
.
-
-