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