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

Method setToolVersion

src/org/antlr/codebuff/Tool.java:248–254  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

246 }
247
248 public static void setToolVersion() throws IOException {
249 InputStream propsStream = Tool.class.getClassLoader().getResourceAsStream("codebuff.properties");
250 Properties prop = new Properties();
251 prop.load(propsStream);
252 version = (String)prop.get("version");
253 propsStream.close();
254 }
255
256 public static CodeBuffTokenStream tokenize(String doc, Class<? extends Lexer> lexerClass)
257 throws Exception {

Callers 1

ToolClass · 0.95

Calls 3

getMethod · 0.65
loadMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected