- java.lang.Object
-
- swim.structure.Item
-
- swim.structure.Value
-
- swim.structure.Text
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbooleanValue()Converts thisValueinto a primitivebooleanvalue, if possible.booleanbooleanValue(boolean orElse)Converts thisValueinto a primitivebooleanvalue, if possible; otherwise returnsorElseif thisValuecan't be converted into a primitivebooleanvalue.Textbranch()bytebyteValue()Converts thisValueinto a primitivebytevalue, if possible.bytebyteValue(byte orElse)Converts thisValueinto a primitivebytevalue, if possible; otherwise returnsorElseif thisValuecan't be converted into a primitivebytevalue.charcharValue()Converts thisValueinto a primitivecharvalue, if possible.charcharValue(char orElse)Converts thisValueinto a primitivecharvalue, if possible; otherwise returnsorElseif thisValuecan't be converted into a primitivecharvalue.Textcommit()intcompareTo(Item other)<T> Output<T>debug(Output<T> output)Writes a developer readable, debug-formatted string representation of this object tooutput.<T> Output<T>display(Output<T> output)Writes a human readable, display-formatted string representation of this object tooutput.doubledoubleValue()Converts 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()booleanequals(Object other)floatfloatValue()Converts thisValueinto a primitivefloatvalue, if possible.floatfloatValue(float orElse)Converts thisValueinto a primitivefloatvalue, if possible; otherwise returnsorElseif thisValuecan't be converted into a primitivefloatvalue.static Textfrom(String value)static TextfromObject(Object object)inthashCode()BigIntegerintegerValue()Converts thisValueinto aBigIntegervalue, if possible.BigIntegerintegerValue(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.booleanisConstant()longlongValue()Converts thisValueinto a primitivelongvalue, if possible.longlongValue(long orElse)Converts thisValueinto a primitivelongvalue, if possible; otherwise returnsorElseif thisValuecan't be converted into a primitivelongvalue.NumbernumberValue()Converts thisValueinto aNumberobject, if possible.NumbernumberValue(Number orElse)Converts thisValueinto aNumberobject, if possible; otherwise returnsorElseif thisValuecan't be converted into aNumberobject.static Output<Text>output()static Output<Text>output(OutputSettings settings)Textplus(Text that)Valueplus(Value that)shortshortValue()Converts thisValueinto a primitiveshortvalue, if possible.shortshortValue(short orElse)Converts thisValueinto a primitiveshortvalue, if possible; otherwise returnsorElseif thisValuecan't be converted into a primitiveshortvalue.intsize()StringstringValue()Converts thisValueinto aStringvalue, if possible.StringstringValue(String orElse)Converts thisValueinto aStringvalue, if possible; otherwise returnsorElseif thisValuecan't be converted into astringvalue.inttypeOrder()Returns 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, unflattened
-
Methods 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, 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
-
-
-
-
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- Specified by:
isConstantin classItem
-
size
public int size()
-
stringValue
public String stringValue()
Description copied from class:ValueConverts thisValueinto aStringvalue, if possible.- Overrides:
stringValuein classValue
-
stringValue
public String stringValue(String orElse)
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
public BigInteger integerValue()
Description copied from class:ValueConverts thisValueinto aBigIntegervalue, if possible.- Overrides:
integerValuein classValue
-
integerValue
public BigInteger integerValue(BigInteger orElse)
Description copied from class:ValueConverts thisValueinto aBigIntegervalue, if possible; otherwise returnsorElseif thisValuecan't be converted into aBigIntegervalue.- Overrides:
integerValuein classValue
-
numberValue
public Number numberValue()
Description copied from class:ValueConverts thisValueinto aNumberobject, if possible.- Overrides:
numberValuein classValue
-
numberValue
public Number numberValue(Number orElse)
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
-
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 final int compareTo(Item other)
- Specified by:
compareToin interfaceComparable<Item>- Specified by:
compareToin classItem
-
debug
public <T> Output<T> debug(Output<T> output)
Description copied from interface:DebugWrites a developer readable, debug-formatted string representation of this object tooutput.
-
display
public <T> Output<T> display(Output<T> output)
Description copied from interface:DisplayWrites a human readable, display-formatted string representation of this object tooutput.
-
empty
public static Text empty()
-
output
public static Output<Text> output(OutputSettings settings)
-
-