@Test public void test1 () throws IOException { SortInfo[] sortInfo; sortInfo = OrderByParser.getSortInfo ("1"); Assert.assertEquals (1, sortInfo[0].column); Assert.assertTrue (sortInfo[0].asc); sortInfo = OrderByParser.getSortInfo ("1 asc"); Assert.assertEquals (1, sortInfo[0].column); Assert.assertTrue (sortInfo[0].asc); sortInfo = OrderByParser.getSortInfo ("a"); Assert.assertEquals ("a", sortInfo[0].name); Assert.assertTrue (sortInfo[0].asc); sortInfo = OrderByParser.getSortInfo ("abc desc"); Assert.assertEquals ("abc", sortInfo[0].name); Assert.assertFalse (sortInfo[0].asc); sortInfo = OrderByParser.getSortInfo ("1 desc, 2 asc"); Assert.assertEquals (1, sortInfo[0].column); Assert.assertFalse (sortInfo[0].asc); Assert.assertEquals (2, sortInfo[1].column); Assert.assertTrue (sortInfo[1].asc); sortInfo = OrderByParser.getSortInfo ("1 desc, abc asc"); Assert.assertEquals (1, sortInfo[0].column); Assert.assertFalse (sortInfo[0].asc); Assert.assertEquals ("abc", sortInfo[1].name); Assert.assertTrue (sortInfo[1].asc); sortInfo = OrderByParser.getSortInfo ("1 desc, \"abc\" asc"); Assert.assertEquals (1, sortInfo[0].column); Assert.assertFalse (sortInfo[0].asc); Assert.assertEquals ("abc", sortInfo[1].name); Assert.assertTrue (sortInfo[1].asc); sortInfo = OrderByParser.getSortInfo ("1 desc, \"a\"\"bc \"\"def\" asc"); Assert.assertEquals (1, sortInfo[0].column); Assert.assertFalse (sortInfo[0].asc); Assert.assertEquals ("a\"bc \"def", sortInfo[1].name); Assert.assertTrue (sortInfo[1].asc); }
public SortInfo[] getSortInfo () { return m_sortInfos.toArray (new SortInfo[m_sortInfos.size ()]); }
OrderByParser extends GeneratedOrderByParser { public SortInfo[] getSortInfo () { return m_sortInfos.toArray (new SortInfo[m_sortInfos.size ()]); } }
OrderByParser extends GeneratedOrderByParser { public SortInfo[] getSortInfo () { return m_sortInfos.toArray (new SortInfo[m_sortInfos.size ()]); } private  OrderByParser(); }
OrderByParser extends GeneratedOrderByParser { public SortInfo[] getSortInfo () { return m_sortInfos.toArray (new SortInfo[m_sortInfos.size ()]); } private  OrderByParser(); SortInfo[] getSortInfo(); static SortInfo[] getSortInfo(String str); }
OrderByParser extends GeneratedOrderByParser { public SortInfo[] getSortInfo () { return m_sortInfos.toArray (new SortInfo[m_sortInfos.size ()]); } private  OrderByParser(); SortInfo[] getSortInfo(); static SortInfo[] getSortInfo(String str);  }