v4: Parser.setInputStream calls Parser.setTokenStream

[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9438]
This commit is contained in:
sharwell 2011-11-22 16:36:39 -08:00
parent 1495ba5bd7
commit cf0d47c8fe
1 changed files with 3 additions and 1 deletions

View File

@ -76,7 +76,9 @@ public class Parser extends BaseRecognizer<Token> {
public TokenStream getInputStream() { return _input; }
@Override
public void setInputStream(IntStream input) { _input = (TokenStream)input; }
public final void setInputStream(IntStream input) {
setTokenStream((TokenStream)input);
}
/** Set the token stream and reset the parser */
public void setTokenStream(TokenStream input) {