Lines Matching refs:Summary
71 List<Summary.Fragment> passages = new ArrayList<Summary.Fragment>();
106 public void add(Summary.Fragment fragment) {
113 public List<Summary.Fragment> elements() {
119 public Summary getSummary(String text) throws IOException {
131 return new Summary();
187 excerpt.add(new Summary.Ellipsis());
202 excerpt.add(new Summary.Fragment(text.substring(offset, t.startOffset())));
203 excerpt.add(new Summary.Highlight(text.substring(t.startOffset(),t.endOffset())));
223 excerpt.add(new Summary.Fragment(text.substring(offset,tokens[j].endOffset())));
253 excerpt.add(new Summary.Fragment(text.substring(tokens[0].startOffset(), tokens[excerptLen-1].startOffset())));
260 // Stop when our Summary grows too large.
263 Summary s = new Summary();
269 for (Summary.Fragment f: excerpt.elements()) {
279 s.add(new Summary.Ellipsis());