public static final class TokenStream.Marker extends Object implements Comparable<TokenStream.Marker>
TokenStream.mark()| Modifier and Type | Field and Description |
|---|---|
protected Position |
position |
protected int |
tokenIndex |
| Modifier | Constructor and Description |
|---|---|
protected |
Marker(Position position,
int index) |
| Modifier and Type | Method and 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() |
protected final int tokenIndex
protected final Position position
protected Marker(Position position, int index)
public Position position()
public int compareTo(TokenStream.Marker that)
compareTo in interface Comparable<TokenStream.Marker>Copyright © 2020 JBoss by Red Hat. All rights reserved.