Пример #1
0
 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;
     }
   }
 }
Пример #2
0
 public void scenario(String keyword, String name, String description, int line) {
   if (event("scenario", line)) {
     listener.scenario(keyword, name, description, line);
   }
 }
Пример #3
0
 public void background(String keyword, String name, String description, int line) {
   if (event("background", line)) {
     listener.background(keyword, name, description, line);
   }
 }
Пример #4
0
 public void feature(String keyword, String name, String description, int line) {
   if (event("feature", line)) {
     listener.feature(keyword, name, description, line);
   }
 }
Пример #5
0
 public void pyString(String string, int line) {
   if (event("py_string", line)) {
     listener.pyString(string, line);
   }
 }
Пример #6
0
 public void tag(String tag, int line) {
   if (event("tag", line)) {
     listener.tag(tag, line);
   }
 }
Пример #7
0
 public void eof() {
   if (event("eof", 1)) {
     listener.eof();
   }
 }
Пример #8
0
 public void row(List<String> cells, int line) {
   if (event("row", line)) {
     listener.row(cells, line);
   }
 }
Пример #9
0
 public void comment(String comment, int line) {
   if (event("comment", line)) {
     listener.comment(comment, line);
   }
 }
Пример #10
0
 public void step(String keyword, String name, int line) {
   if (event("step", line)) {
     listener.step(keyword, name, line);
   }
 }
Пример #11
0
 public void examples(String keyword, String name, String description, int line) {
   if (event("examples", line)) {
     listener.examples(keyword, name, description, line);
   }
 }