MCPcopy Create free account
hub / github.com/antlr/codebuff / getLexer

Method getLexer

src/org/antlr/codebuff/Tool.java:272–276  ·  view source on GitHub ↗
(Class<? extends Lexer> lexerClass, ANTLRInputStream input)

Source from the content-addressed store, hash-verified

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 =
274 lexerClass.getConstructor(CharStream.class);
275 return lexerCtor.newInstance(input);
276 }
277
278 /** Get all file contents into input doc list */
279 public static List<InputDocument> load(List<String> fileNames, LangDescriptor language)

Callers 4

mainMethod · 0.95
tokenizeMethod · 0.95
parseMethod · 0.95

Calls 1

newInstanceMethod · 0.45

Tested by

no test coverage detected