@Test public void testParseCondExpression() throws Exception { Expression result = CCJSqlParserUtil.parseCondExpression("a+b>5 and c<3"); assertEquals("a + b > 5 AND c < 3", result.toString()); }
public static Expression parseCondExpression(String condExpr) throws JSQLParserException { CCJSqlParser parser = new CCJSqlParser(new StringReader(condExpr)); try { return parser.Expression(); } catch (Exception ex) { throw new JSQLParserException(ex); } }
CCJSqlParserUtil { public static Expression parseCondExpression(String condExpr) throws JSQLParserException { CCJSqlParser parser = new CCJSqlParser(new StringReader(condExpr)); try { return parser.Expression(); } catch (Exception ex) { throw new JSQLParserException(ex); } } }
CCJSqlParserUtil { public static Expression parseCondExpression(String condExpr) throws JSQLParserException { CCJSqlParser parser = new CCJSqlParser(new StringReader(condExpr)); try { return parser.Expression(); } catch (Exception ex) { throw new JSQLParserException(ex); } } private  CCJSqlParserUtil(); }
CCJSqlParserUtil { public static Expression parseCondExpression(String condExpr) throws JSQLParserException { CCJSqlParser parser = new CCJSqlParser(new StringReader(condExpr)); try { return parser.Expression(); } catch (Exception ex) { throw new JSQLParserException(ex); } } private  CCJSqlParserUtil(); static Statement parse(Reader statementReader); static Statement parse(String sql); static Node parseAST(String sql); static Statement parse(InputStream is); static Statement parse(InputStream is, String encoding); static Expression parseExpression(String expression); static Expression parseCondExpression(String condExpr); static Statements parseStatements(String sqls); }
CCJSqlParserUtil { public static Expression parseCondExpression(String condExpr) throws JSQLParserException { CCJSqlParser parser = new CCJSqlParser(new StringReader(condExpr)); try { return parser.Expression(); } catch (Exception ex) { throw new JSQLParserException(ex); } } private  CCJSqlParserUtil(); static Statement parse(Reader statementReader); static Statement parse(String sql); static Node parseAST(String sql); static Statement parse(InputStream is); static Statement parse(InputStream is, String encoding); static Expression parseExpression(String expression); static Expression parseCondExpression(String condExpr); static Statements parseStatements(String sqls);  }