- java.lang.Object
-
- swim.codec.Tag
-
- swim.codec.Span
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
debug(Output<?> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.void
display(Output<?> 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
-
from
public static Span from(Mark start, Mark end)
Returns a newSpan
representing the closed interval between the givenstart
andend
marks.
-
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 void display(Output<?> output)
Description copied from interface:Display
Writes a human readable, display-formatted string representation of this object tooutput
.
-
debug
public void debug(Output<?> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.
-
-