@Test public void testIsEmpty() throws ParseException { String term = "qwerty"; QueryBuilder qb = new QueryBuilder().setDefs(term); Context c = new Context(qb.build(), qb); assertFalse(c.isEmpty()); qb = new QueryBuilder().setRefs(term); c = new Context(qb.build(), qb); assertFalse(c.isEmpty()); qb = new QueryBuilder().setFreetext(term); c = new Context(qb.build(), qb); assertFalse(c.isEmpty()); qb = new QueryBuilder().setHist(term); c = new Context(qb.build(), qb); assertTrue(c.isEmpty()); qb = new QueryBuilder().setPath(term); c = new Context(qb.build(), qb); assertTrue(c.isEmpty()); qb = new QueryBuilder().setHist(term).setFreetext(term); c = new Context(qb.build(), qb); assertFalse(c.isEmpty()); }
public boolean isEmpty() { return m == null; }
Context { public boolean isEmpty() { return m == null; } }
Context { public boolean isEmpty() { return m == null; } Context(Query query, QueryBuilder qbuilder); }
Context { public boolean isEmpty() { return m == null; } Context(Query query, QueryBuilder qbuilder); void toggleAlt(); boolean isEmpty(); boolean getContext2(RuntimeEnvironment env, IndexSearcher searcher,
        int docId, Appendable dest, String urlPrefix, String morePrefix,
        boolean limit, int tabSize); boolean getContext(Reader in, Writer out, String urlPrefix,
        String morePrefix, String path, Definitions tags,
        boolean limit, boolean isDefSearch, List<Hit> hits); boolean getContext(Reader in, Writer out, String urlPrefix,
            String morePrefix, String path, Definitions tags,
            boolean limit, boolean isDefSearch, List<Hit> hits, Scopes scopes); }
Context { public boolean isEmpty() { return m == null; } Context(Query query, QueryBuilder qbuilder); void toggleAlt(); boolean isEmpty(); boolean getContext2(RuntimeEnvironment env, IndexSearcher searcher,
        int docId, Appendable dest, String urlPrefix, String morePrefix,
        boolean limit, int tabSize); boolean getContext(Reader in, Writer out, String urlPrefix,
        String morePrefix, String path, Definitions tags,
        boolean limit, boolean isDefSearch, List<Hit> hits); boolean getContext(Reader in, Writer out, String urlPrefix,
            String morePrefix, String path, Definitions tags,
            boolean limit, boolean isDefSearch, List<Hit> hits, Scopes scopes);  }