@Test public void testStatementsErrorRecovery2() throws JSQLParserException, ParseException { String sqls = "select * from1 table;"; CCJSqlParser parser = new CCJSqlParser(new StringReader(sqls)); parser.setErrorRecovery(true); Statements parseStatements = parser.Statements(); assertEquals(1, parseStatements.getStatements().size()); assertTrue(parseStatements.getStatements().get(0) instanceof Select); assertEquals(1,parser.getParseErrors().size()); }
public List<Statement> getStatements() { return statements; }
Statements { public List<Statement> getStatements() { return statements; } }
Statements { public List<Statement> getStatements() { return statements; }  }
Statements { public List<Statement> getStatements() { return statements; }  List<Statement> getStatements(); void setStatements(List<Statement> statements); void accept(StatementVisitor statementVisitor); @Override String toString(); }
Statements { public List<Statement> getStatements() { return statements; }  List<Statement> getStatements(); void setStatements(List<Statement> statements); void accept(StatementVisitor statementVisitor); @Override String toString();  }