RelationParser { static final Parser<Relation> aliasable(Parser<Relation> rel) { return alias(rel).or(rel); }  static Parser<Relation> query();  }
@Test public void testAliasable() { Parser<Relation> parser = RelationParser.aliasable(TABLE); TerminalParserTest.assertParser(parser, "table t", new AliasedRelation(table("table"), "t")); TerminalParserTest.assertParser(parser, "table as t", new AliasedRelation(table("table"), "t")); TerminalParserTest.assertParser(parser, "table", table("table")); }