- java.lang.Object
-
- swim.codec.Tag
-
- swim.codec.Span
-
-
Method Summary
Modifier and Type Method Description voiddebug(Output<?> output)Writes a developer readable, debug-formatted string representation of this object tooutput.voiddisplay(Output<?> output)Writes a human readable, display-formatted string representation of this object tooutput.Markend()Returns the last source position covered by thisTag.booleanequals(Object other)static Spanfrom(Mark start, Mark end)Returns a newSpanrepresenting the closed interval between the givenstartandendmarks.inthashCode()Spanshift(Mark mark)Returns the position of thisTagrelative to the givenmark.Markstart()Returns the first source position covered by thisTag.StringtoString()Tagunion(Tag other)Returns aTagthat includes all source locations covered by both this tag, and someothertag.
-
-
-
Method Detail
-
from
public static Span from(Mark start, Mark end)
Returns a newSpanrepresenting the closed interval between the givenstartandendmarks.
-
start
public Mark start()
Description copied from class:TagReturns the first source position covered by thisTag.
-
end
public Mark end()
Description copied from class:TagReturns the last source position covered by thisTag.
-
union
public Tag union(Tag other)
Description copied from class:TagReturns aTagthat includes all source locations covered by both this tag, and someothertag.
-
shift
public Span shift(Mark mark)
Description copied from class:TagReturns the position of thisTagrelative to the givenmark.
-
display
public void display(Output<?> output)
Description copied from interface:DisplayWrites a human readable, display-formatted string representation of this object tooutput.
-
debug
public void debug(Output<?> output)
Description copied from interface:DebugWrites a developer readable, debug-formatted string representation of this object tooutput.
-
-