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
.boolean
static Span
Returns a newSpan
representing the closed interval between the givenstart
andend
marks.int
hashCode()
Returns the position of thisTag
relative to the givenmark
.start()
Returns the first source position covered by thisTag
.toString()
Returns aTag
that includes all source locations covered by both this tag, and someother
tag.
-
Method Details
-
start
Description copied from class:Tag
Returns the first source position covered by thisTag
. -
end
Description copied from class:Tag
Returns the last source position covered by thisTag
. -
union
Description copied from class:Tag
Returns aTag
that includes all source locations covered by both this tag, and someother
tag. -
shift
Description copied from class:Tag
Returns the position of thisTag
relative to the givenmark
. -
equals
-
hashCode
public int hashCode() -
display
Description copied from interface:Display
Writes a human readable, display-formatted string representation of this object tooutput
.- Returns:
- the continuation of the
output
.
-
debug
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.- Returns:
- the continuation of the
output
.
-
toString
-
from
Returns a newSpan
representing the closed interval between the givenstart
andend
marks.
-