Package io.debezium.text
Class TokenStream.Marker
- java.lang.Object
-
- io.debezium.text.TokenStream.Marker
-
- All Implemented Interfaces:
Comparable<TokenStream.Marker>
- Enclosing class:
- TokenStream
public static final class TokenStream.Marker extends Object implements Comparable<TokenStream.Marker>
An opaque marker for a position within the token stream.- See Also:
TokenStream.mark()
-
-
Field Summary
Fields Modifier and Type Field Description protected Position
position
protected int
tokenIndex
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(TokenStream.Marker that)
Position
position()
Get the position of this marker, or null if this is at the start or end of the token stream.String
toString()
-
-
-
Field Detail
-
tokenIndex
protected final int tokenIndex
-
position
protected final Position position
-
-
Constructor Detail
-
Marker
protected Marker(Position position, int index)
-
-
Method Detail
-
position
public Position position()
Get the position of this marker, or null if this is at the start or end of the token stream.- Returns:
- the position.
-
compareTo
public int compareTo(TokenStream.Marker that)
- Specified by:
compareTo
in interfaceComparable<TokenStream.Marker>
-
-