public Concordance getConcordance(){
if (windowSize == -1){
// not specified - we have to guess it.
int max = 0;
for (Iterator iter = clist.iterator(); iter.hasNext();) {
ConcordanceLine line = (ConcordanceLine) iter.next();
int m = Math.max(line.getLeftHandSide().size(),
line.getRightHandSide().size());
if (m > max)
max = m;
}
windowSize = max;
}
conc = new ConcordanceImpl(windowSize);
for (Iterator iter = clist.iterator(); iter.hasNext();) {
ConcordanceLine line = (ConcordanceLine) iter.next();
conc.addLine(line);
}
return conc;
}