public String getText(Interval interval) {int start = interval.a;int stop = interval.b;if ( start<0 || stop<0 ) return "";fill();if ( stop>=tokens.size() ) stop = tokens.size()-1;StringBuilder buf = new StringBuilder();for (int i = start; i <= stop; i++) {Token t = tokens.get(i);if ( t.getType()==Token.EOF ) break;buf.append(t.getText());}return buf.toString();}

public virtual string GetText(Interval interval){int start = interval.a;int stop = interval.b;if (start < 0 || stop < 0){return string.Empty;}LazyInit();if (stop >= tokens.Count){stop = tokens.Count - 1;}StringBuilder buf = new StringBuilder();for (int i = start; i <= stop; i++){IToken t = tokens[i];if (t.Type == TokenConstants.EOF){break;}buf.Append(t.Text);}return buf.ToString();}
