- java.lang.Object
-
- swim.codec.Tag
-
- swim.codec.Span
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <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
.Mark
end()
Returns the last source position covered by thisTag
.boolean
equals(Object other)
static Span
from(Mark start, Mark end)
Returns a newSpan
representing the closed interval between the givenstart
andend
marks.int
hashCode()
Span
shift(Mark mark)
Returns the position of thisTag
relative to the givenmark
.Mark
start()
Returns the first source position covered by thisTag
.String
toString()
Tag
union(Tag other)
Returns aTag
that includes all source locations covered by both this tag, and someother
tag.
-
-
-
Method Detail
-
start
public Mark start()
Description copied from class:Tag
Returns the first source position covered by thisTag
.
-
end
public Mark end()
Description copied from class:Tag
Returns the last source position covered by thisTag
.
-
union
public Tag union(Tag other)
Description copied from class:Tag
Returns aTag
that includes all source locations covered by both this tag, and someother
tag.
-
shift
public Span shift(Mark mark)
Description copied from class:Tag
Returns the position of thisTag
relative to the givenmark
.
-
display
public <T> Output<T> display(Output<T> output)
Description copied from interface:Display
Writes a human readable, display-formatted string representation of this object tooutput
.- Returns:
- the continuation of the
output
.
-
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
.- Returns:
- the continuation of the
output
.
-
-