@Test(expected = SimpleHBaseException.class) public void errorLexer_1() { String hql = ""; TreeUtil.parseProgContext(hql); }
public static ProgContext parseProgContext(String hql) { Util.checkEmptyString(hql); try { ANTLRInputStream input = new ANTLRInputStream(new StringReader(hql)); SimpleHbaseStatementsLexer lexer = new SimpleHbaseStatementsLexer( input); CommonTokenStream tokens = new CommonTokenStream(lexer); StatementsParser parser = new StatementsParser(tokens); parser.setErrorHandler(SimpleHbaseErrorStrategy.instance); ProgContext progContext = parser.prog(); return progContext; } catch (Exception e) { throw new SimpleHBaseException("parse error.", e); } }
TreeUtil { public static ProgContext parseProgContext(String hql) { Util.checkEmptyString(hql); try { ANTLRInputStream input = new ANTLRInputStream(new StringReader(hql)); SimpleHbaseStatementsLexer lexer = new SimpleHbaseStatementsLexer( input); CommonTokenStream tokens = new CommonTokenStream(lexer); StatementsParser parser = new StatementsParser(tokens); parser.setErrorHandler(SimpleHbaseErrorStrategy.instance); ProgContext progContext = parser.prog(); return progContext; } catch (Exception e) { throw new SimpleHBaseException("parse error.", e); } } }
TreeUtil { public static ProgContext parseProgContext(String hql) { Util.checkEmptyString(hql); try { ANTLRInputStream input = new ANTLRInputStream(new StringReader(hql)); SimpleHbaseStatementsLexer lexer = new SimpleHbaseStatementsLexer( input); CommonTokenStream tokens = new CommonTokenStream(lexer); StatementsParser parser = new StatementsParser(tokens); parser.setErrorHandler(SimpleHbaseErrorStrategy.instance); ProgContext progContext = parser.prog(); return progContext; } catch (Exception e) { throw new SimpleHBaseException("parse error.", e); } }  }
TreeUtil { public static ProgContext parseProgContext(String hql) { Util.checkEmptyString(hql); try { ANTLRInputStream input = new ANTLRInputStream(new StringReader(hql)); SimpleHbaseStatementsLexer lexer = new SimpleHbaseStatementsLexer( input); CommonTokenStream tokens = new CommonTokenStream(lexer); StatementsParser parser = new StatementsParser(tokens); parser.setErrorHandler(SimpleHbaseErrorStrategy.instance); ProgContext progContext = parser.prog(); return progContext; } catch (Exception e) { throw new SimpleHBaseException("parse error.", e); } }  static ProgContext parseProgContext(String hql); static String parseTableName(ProgContext progContext); static RawHQLType parseHQLType(ProgContext progContext); }
TreeUtil { public static ProgContext parseProgContext(String hql) { Util.checkEmptyString(hql); try { ANTLRInputStream input = new ANTLRInputStream(new StringReader(hql)); SimpleHbaseStatementsLexer lexer = new SimpleHbaseStatementsLexer( input); CommonTokenStream tokens = new CommonTokenStream(lexer); StatementsParser parser = new StatementsParser(tokens); parser.setErrorHandler(SimpleHbaseErrorStrategy.instance); ProgContext progContext = parser.prog(); return progContext; } catch (Exception e) { throw new SimpleHBaseException("parse error.", e); } }  static ProgContext parseProgContext(String hql); static String parseTableName(ProgContext progContext); static RawHQLType parseHQLType(ProgContext progContext);  }