+ public boolean isNextToken(final String token) {
+ if (token.equals(getToken().token))
+ return true;
+
+ rollbackToken();
+ return false;
+ }
+
+ public void rollbackToken() {
+ currentIndex = tokenIndexes.pop();
+ }
+
+ public void skipUtilEnd() {
+ tokenIndexes.push(currentIndex);
+ currentIndex = source.length();
+ }
+