MCPcopy Index your code
hub / github.com/antlr/codebuff / getParser

Method getParser

src/org/antlr/codebuff/Tool.java:266–270  ·  view source on GitHub ↗
(Class<? extends Parser> parserClass, CommonTokenStream tokens)

Source from the content-addressed store, hash-verified

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 =

Callers 2

parseMethod · 0.95

Calls 1

newInstanceMethod · 0.45

Tested by

no test coverage detected