Ejemplo n.º 1
0
 /**
  * Attempts to move the lexer to the next token, and throws a ParseException with the expected
  * next token types if not successful
  */
 private void expectMoveNext(JsonLexer lexer, Token... expected) throws ParseException {
   if (!lexer.moveNext()) {
     throw new ParseException("no valid tokens from " + lexer.getOffset(), expected);
   }
 }