make more flexible

[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 7381]
This commit is contained in:
parrt 2010-12-31 17:27:11 -08:00
parent 695c997f26
commit b5be319b9b
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ public class jUnitBaseTest {
public String lexerClassName;
public String parserClassName;
public String adaptorClassName;
public Object execParser(
String ruleName,
String input,
@ -22,7 +22,7 @@ public class jUnitBaseTest {
Class[] lexArgTypes = new Class[]{CharStream.class};
Constructor lexConstructor = lexerClass.getConstructor(lexArgTypes);
Object[] lexArgs = new Object[]{is};
Lexer lexer = (Lexer)lexConstructor.newInstance(lexArgs);
TokenSource lexer = (TokenSource)lexConstructor.newInstance(lexArgs);
is.setLine(scriptLine);
CommonTokenStream tokens = new CommonTokenStream(lexer);