java.lang.Object
swim.codec.Tag
swim.codec.Span
Description of a source range, identified by a closed interval between start
and end
marks.-
Method Summary
Modifier and TypeMethodDescription<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.end()Returns the last source position covered by thisTag.booleanstatic SpanReturns a newSpanrepresenting the closed interval between the givenstartandendmarks.inthashCode()Returns the position of thisTagrelative to the givenmark.start()Returns the first source position covered by thisTag.toString()Returns aTagthat includes all source locations covered by both this tag, and someothertag.
-
Method Details
-
start
Description copied from class:TagReturns the first source position covered by thisTag. -
end
Description copied from class:TagReturns the last source position covered by thisTag. -
union
Description copied from class:TagReturns aTagthat includes all source locations covered by both this tag, and someothertag. -
shift
Description copied from class:TagReturns the position of thisTagrelative to the givenmark. -
equals
-
hashCode
public int hashCode() -
display
Description copied from interface:DisplayWrites a human readable, display-formatted string representation of this object tooutput.- Returns:
- the continuation of the
output.
-
debug
Description copied from interface:DebugWrites a developer readable, debug-formatted string representation of this object tooutput.- Returns:
- the continuation of the
output.
-
toString
-
from
Returns a newSpanrepresenting the closed interval between the givenstartandendmarks.
-