rm toString from token stream. it affects buffer.
This commit is contained in:
parent
990da7d1d8
commit
5fc148381a
|
@ -310,10 +310,6 @@ public class BufferedTokenStream<T extends Token> implements TokenStream {
|
||||||
@Override
|
@Override
|
||||||
public String getSourceName() { return tokenSource.getSourceName(); }
|
public String getSourceName() { return tokenSource.getSourceName(); }
|
||||||
|
|
||||||
/** Grab *all* tokens from stream and return string */
|
|
||||||
@Override
|
|
||||||
public String toString() { return getText(); }
|
|
||||||
|
|
||||||
/** Get the text of all tokens in this buffer. */
|
/** Get the text of all tokens in this buffer. */
|
||||||
public String getText() {
|
public String getText() {
|
||||||
if ( p == -1 ) setup();
|
if ( p == -1 ) setup();
|
||||||
|
|
Loading…
Reference in New Issue