Modifier and Type | Method and Description |
---|---|
boolean |
canConsume(String expected) |
boolean |
canConsume(String expected,
boolean ignoreLeadingAndTrailingWhitespace) |
protected boolean |
canConsumeNextToken() |
boolean |
hasNext() |
protected boolean |
isNext(String expected,
boolean ignoreLeadingAndTrailingWhitespace) |
int |
mark() |
String |
next() |
String |
original() |
int |
position() |
String |
previous() |
void |
rewindTo(int position) |
public Parser(String original)
public int position()
public int mark()
public void rewindTo(int position)
public String original()
public boolean hasNext()
protected boolean canConsumeNextToken()
public String next()
public String previous()
public boolean canConsume(String expected)
public boolean canConsume(String expected, boolean ignoreLeadingAndTrailingWhitespace)
protected boolean isNext(String expected, boolean ignoreLeadingAndTrailingWhitespace)