private boolean event(String event, int line) { try { machine().event(event, line); return true; } catch (ParseError e) { if (throwOnError) { throw e; } else { int l = lineOffset + line; listener.syntaxError(e.getState(), event, e.getLegalEvents(), featureURI, l); return false; } } }
public void scenario(String keyword, String name, String description, int line) { if (event("scenario", line)) { listener.scenario(keyword, name, description, line); } }
public void background(String keyword, String name, String description, int line) { if (event("background", line)) { listener.background(keyword, name, description, line); } }
public void feature(String keyword, String name, String description, int line) { if (event("feature", line)) { listener.feature(keyword, name, description, line); } }
public void pyString(String string, int line) { if (event("py_string", line)) { listener.pyString(string, line); } }
public void tag(String tag, int line) { if (event("tag", line)) { listener.tag(tag, line); } }
public void eof() { if (event("eof", 1)) { listener.eof(); } }
public void row(List<String> cells, int line) { if (event("row", line)) { listener.row(cells, line); } }
public void comment(String comment, int line) { if (event("comment", line)) { listener.comment(comment, line); } }
public void step(String keyword, String name, int line) { if (event("step", line)) { listener.step(keyword, name, line); } }
public void examples(String keyword, String name, String description, int line) { if (event("examples", line)) { listener.examples(keyword, name, description, line); } }