class 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);
		} 
	}

}

class CCJSqlParserUtilTest {

	@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());
	}

}