MCPcopy Create free account
hub / github.com/chibash/stone / match

Method match

src/stone/Parser.java:306–313  ·  view source on GitHub ↗
(Lexer lexer)

Source from the content-addressed store, hash-verified

304 return factory.make(results);
305 }
306 protected boolean match(Lexer lexer) throws ParseException {
307 if (elements.size() == 0)
308 return true;
309 else {
310 Element e = elements.get(0);
311 return e.match(lexer);
312 }
313 }
314 public static Parser rule() { return rule(null); }
315 public static Parser rule(Class<? extends ASTree> clazz) {
316 return new Parser(clazz);

Callers 5

matchMethod · 0.45
chooseMethod · 0.45
parseMethod · 0.45
matchMethod · 0.45
matchMethod · 0.45

Calls 3

matchMethod · 0.95
getMethod · 0.65
sizeMethod · 0.45

Tested by

no test coverage detected