java.lang.Object
swim.structure.Item
swim.structure.Value
swim.structure.Text
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanConverts thisValueinto a primitivebooleanvalue, if possible.booleanbooleanValue(boolean orElse) Converts thisValueinto a primitivebooleanvalue, if possible; otherwise returnsorElseif thisValuecan't be converted into a primitivebooleanvalue.branch()byteConverts thisValueinto a primitivebytevalue, if possible.bytebyteValue(byte orElse) Converts thisValueinto a primitivebytevalue, if possible; otherwise returnsorElseif thisValuecan't be converted into a primitivebytevalue.charConverts thisValueinto a primitivecharvalue, if possible.charcharValue(char orElse) Converts thisValueinto a primitivecharvalue, if possible; otherwise returnsorElseif thisValuecan't be converted into a primitivecharvalue.commit()final int<T> Output<T>Writes a developer readable, debug-formatted string representation of this object tooutput.<T> Output<T>Writes a human readable, display-formatted string representation of this object tooutput.doubleConverts thisValueinto a primitivedoublevalue, if possible.doubledoubleValue(double orElse) Converts thisValueinto a primitivedoublevalue, if possible; otherwise returnsorElseif thisValuecan't be converted into a primitivedoublevalue.static Textempty()final booleanfloatConverts thisValueinto a primitivefloatvalue, if possible.floatfloatValue(float orElse) Converts thisValueinto a primitivefloatvalue, if possible; otherwise returnsorElseif thisValuecan't be converted into a primitivefloatvalue.static Textstatic TextfromObject(Object object) final inthashCode()Converts thisValueinto aBigIntegervalue, if possible.integerValue(BigInteger orElse) Converts thisValueinto aBigIntegervalue, if possible; otherwise returnsorElseif thisValuecan't be converted into aBigIntegervalue.intintValue()Converts thisValueinto a primitiveintvalue, if possible.intintValue(int orElse) Converts thisValueinto a primitiveintvalue, if possible; otherwise returnsorElseif thisValuecan't be converted into a primitiveintvalue.booleanlongConverts thisValueinto a primitivelongvalue, if possible.longlongValue(long orElse) Converts thisValueinto a primitivelongvalue, if possible; otherwise returnsorElseif thisValuecan't be converted into a primitivelongvalue.Converts thisValueinto aNumberobject, if possible.numberValue(Number orElse) Converts thisValueinto aNumberobject, if possible; otherwise returnsorElseif thisValuecan't be converted into aNumberobject.output()output(OutputSettings settings) shortConverts thisValueinto a primitiveshortvalue, if possible.shortshortValue(short orElse) Converts thisValueinto a primitiveshortvalue, if possible; otherwise returnsorElseif thisValuecan't be converted into a primitiveshortvalue.intsize()Converts thisValueinto aStringvalue, if possible.stringValue(String orElse) Converts thisValueinto aStringvalue, if possible; otherwise returnsorElseif thisValuecan't be converted into astringvalue.intReturns the heterogeneous sort order of thisItem.Methods inherited from class swim.structure.Value
absent, alias, and, and, bitwiseAnd, bitwiseAnd, bitwiseNot, bitwiseOr, bitwiseOr, bitwiseXor, bitwiseXor, body, builder, conditional, conditional, contains, containsKey, containsKey, containsValue, divide, divide, eq, eq, extant, flattened, ge, ge, get, get, getAttr, getAttr, getField, getField, getItem, getSlot, getSlot, gt, gt, head, header, headers, inverse, isAliased, isDefined, isDefinite, isDistinct, isMutable, key, keyEquals, lambda, le, le, length, lt, lt, minus, minus, modulo, modulo, ne, ne, negative, not, or, or, plus, positive, removed, removed, tag, tail, target, times, times, toValue, unflattenedMethods inherited from class swim.structure.Item
appended, appended, appended, appended, appended, appended, appended, appended, cast, cast, coerce, coerce, concat, evaluate, evaluate, filter, filter, globalScope, invoke, iterator, max, min, precedence, prepended, prepended, prepended, prepended, prepended, prepended, prepended, prepended, substitute, 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, updatedSlotMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
value
-
-
Constructor Details
-
Text
-
-
Method Details
-
isConstant
public boolean isConstant()Description copied from class:Item- Specified by:
isConstantin classItem
-
size
public int size() -
stringValue
Description copied from class:ValueConverts thisValueinto aStringvalue, if possible.- Overrides:
stringValuein classValue
-
stringValue
Description copied from class:ValueConverts thisValueinto aStringvalue, if possible; otherwise returnsorElseif thisValuecan't be converted into astringvalue.- Overrides:
stringValuein classValue
-
byteValue
public byte byteValue()Description copied from class:ValueConverts thisValueinto a primitivebytevalue, if possible. -
byteValue
public byte byteValue(byte orElse) Description copied from class:ValueConverts thisValueinto a primitivebytevalue, if possible; otherwise returnsorElseif thisValuecan't be converted into a primitivebytevalue. -
shortValue
public short shortValue()Description copied from class:ValueConverts thisValueinto a primitiveshortvalue, if possible.- Overrides:
shortValuein classValue
-
shortValue
public short shortValue(short orElse) Description copied from class:ValueConverts thisValueinto a primitiveshortvalue, if possible; otherwise returnsorElseif thisValuecan't be converted into a primitiveshortvalue.- Overrides:
shortValuein classValue
-
intValue
public int intValue()Description copied from class:ValueConverts thisValueinto a primitiveintvalue, if possible. -
intValue
public int intValue(int orElse) Description copied from class:ValueConverts thisValueinto a primitiveintvalue, if possible; otherwise returnsorElseif thisValuecan't be converted into a primitiveintvalue. -
longValue
public long longValue()Description copied from class:ValueConverts thisValueinto a primitivelongvalue, if possible. -
longValue
public long longValue(long orElse) Description copied from class:ValueConverts thisValueinto a primitivelongvalue, if possible; otherwise returnsorElseif thisValuecan't be converted into a primitivelongvalue. -
floatValue
public float floatValue()Description copied from class:ValueConverts thisValueinto a primitivefloatvalue, if possible.- Overrides:
floatValuein classValue
-
floatValue
public float floatValue(float orElse) Description copied from class:ValueConverts thisValueinto a primitivefloatvalue, if possible; otherwise returnsorElseif thisValuecan't be converted into a primitivefloatvalue.- Overrides:
floatValuein classValue
-
doubleValue
public double doubleValue()Description copied from class:ValueConverts thisValueinto a primitivedoublevalue, if possible.- Overrides:
doubleValuein classValue
-
doubleValue
public double doubleValue(double orElse) Description copied from class:ValueConverts thisValueinto a primitivedoublevalue, if possible; otherwise returnsorElseif thisValuecan't be converted into a primitivedoublevalue.- Overrides:
doubleValuein classValue
-
integerValue
Description copied from class:ValueConverts thisValueinto aBigIntegervalue, if possible.- Overrides:
integerValuein classValue
-
integerValue
Description copied from class:ValueConverts thisValueinto aBigIntegervalue, if possible; otherwise returnsorElseif thisValuecan't be converted into aBigIntegervalue.- Overrides:
integerValuein classValue
-
numberValue
Description copied from class:ValueConverts thisValueinto aNumberobject, if possible.- Overrides:
numberValuein classValue
-
numberValue
Description copied from class:ValueConverts thisValueinto aNumberobject, if possible; otherwise returnsorElseif thisValuecan't be converted into aNumberobject.- Overrides:
numberValuein classValue
-
charValue
public char charValue()Description copied from class:ValueConverts thisValueinto a primitivecharvalue, if possible. -
charValue
public char charValue(char orElse) Description copied from class:ValueConverts thisValueinto a primitivecharvalue, if possible; otherwise returnsorElseif thisValuecan't be converted into a primitivecharvalue. -
booleanValue
public boolean booleanValue()Description copied from class:ValueConverts thisValueinto a primitivebooleanvalue, if possible.- Overrides:
booleanValuein classValue
-
booleanValue
public boolean booleanValue(boolean orElse) Description copied from class:ValueConverts thisValueinto a primitivebooleanvalue, if possible; otherwise returnsorElseif thisValuecan't be converted into a primitivebooleanvalue.- Overrides:
booleanValuein classValue
-
plus
-
plus
-
branch
-
commit
Description copied from class:Item -
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
- Specified by:
compareToin interfaceComparable<Item>- Specified by:
compareToin classItem
-
equals
-
hashCode
public final int hashCode() -
debug
Description copied from interface:DebugWrites a developer readable, debug-formatted string representation of this object tooutput. -
display
Description copied from interface:DisplayWrites a human readable, display-formatted string representation of this object tooutput. -
empty
-
from
-
fromObject
-
output
-
output
-