- 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.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
-
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 <T> Output<T> display(Output<T> output)
Description copied from interface:DisplayWrites 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:DebugWrites a developer readable, debug-formatted string representation of this object tooutput.- Returns:
- the continuation of the
output.
-
-