@Test public void test2 () throws Exception { Globals globals = new Globals (); JaqyInterpreter interpreter = new JaqyInterpreter (globals, null, null); VariableManager vm = interpreter.getVariableManager (); ExpNode exp; exp = WhereParser.getExp ("1 < any (1, 2)"); exp.bind (null, vm, interpreter); Assert.assertTrue ((Boolean)exp.get ()); exp = WhereParser.getExp ("1 < some (1, 2)"); exp.bind (null, vm, interpreter); Assert.assertTrue ((Boolean)exp.get ()); exp = WhereParser.getExp ("1 <= some (1, 2)"); exp.bind (null, vm, interpreter); Assert.assertTrue ((Boolean)exp.get ()); exp = WhereParser.getExp ("1 = some (1, 2)"); exp.bind (null, vm, interpreter); Assert.assertTrue ((Boolean)exp.get ()); exp = WhereParser.getExp ("1 <> some (1, 2)"); exp.bind (null, vm, interpreter); Assert.assertTrue ((Boolean)exp.get ()); exp = WhereParser.getExp ("1 > some (1, 2)"); exp.bind (null, vm, interpreter); Assert.assertFalse ((Boolean)exp.get ()); exp = WhereParser.getExp ("1 >= some (1, 2)"); exp.bind (null, vm, interpreter); Assert.assertTrue ((Boolean)exp.get ()); exp = WhereParser.getExp ("1 < ALL (1, 2)"); exp.bind (null, vm, interpreter); Assert.assertFalse ((Boolean)exp.get ()); exp = WhereParser.getExp ("1 <= ALL (1, 2)"); exp.bind (null, vm, interpreter); Assert.assertTrue ((Boolean)exp.get ()); exp = WhereParser.getExp ("1 = ALL (1, 2)"); exp.bind (null, vm, interpreter); Assert.assertFalse ((Boolean)exp.get ()); exp = WhereParser.getExp ("1 <> ALL (1, 2)"); exp.bind (null, vm, interpreter); Assert.assertFalse ((Boolean)exp.get ()); exp = WhereParser.getExp ("1 > ALL (1, 2)"); exp.bind (null, vm, interpreter); Assert.assertFalse ((Boolean)exp.get ()); exp = WhereParser.getExp ("1 >= ALL (1, 2)"); exp.bind (null, vm, interpreter); Assert.assertFalse ((Boolean)exp.get ()); exp = WhereParser.getExp ("1 IN (1, 2)"); exp.bind (null, vm, interpreter); Assert.assertTrue ((Boolean)exp.get ()); exp = WhereParser.getExp ("'abc' like 'a'"); exp.bind (null, vm, interpreter); Assert.assertTrue ((Boolean)exp.get ()); exp = WhereParser.getExp ("'abc' like 'a$'"); exp.bind (null, vm, interpreter); Assert.assertFalse ((Boolean)exp.get ()); exp = WhereParser.getExp ("'abc' like 'a.*'"); exp.bind (null, vm, interpreter); Assert.assertTrue ((Boolean)exp.get ()); }
public ExpNode getExp () { return m_exp; }
WhereParser extends GeneratedWhereParser { public ExpNode getExp () { return m_exp; } }
WhereParser extends GeneratedWhereParser { public ExpNode getExp () { return m_exp; } private  WhereParser(); }
WhereParser extends GeneratedWhereParser { public ExpNode getExp () { return m_exp; } private  WhereParser(); ExpNode getExp(); static ExpNode getExp(String str); }
WhereParser extends GeneratedWhereParser { public ExpNode getExp () { return m_exp; } private  WhereParser(); ExpNode getExp(); static ExpNode getExp(String str);  }