(Class<? extends Parser> parserClass, CommonTokenStream tokens)
| 264 | } |
| 265 | |
| 266 | public static Parser getParser(Class<? extends Parser> parserClass, CommonTokenStream tokens) throws NoSuchMethodException, InstantiationException, IllegalAccessException, java.lang.reflect.InvocationTargetException { |
| 267 | Constructor<? extends Parser> parserCtor = |
| 268 | parserClass.getConstructor(TokenStream.class); |
| 269 | return parserCtor.newInstance(tokens); |
| 270 | } |
| 271 | |
| 272 | public static Lexer getLexer(Class<? extends Lexer> lexerClass, ANTLRInputStream input) throws NoSuchMethodException, InstantiationException, IllegalAccessException, java.lang.reflect.InvocationTargetException { |
| 273 | Constructor<? extends Lexer> lexerCtor = |
no test coverage detected