예제 #1
0
 private String debugHiddenTokens(antlr.CommonHiddenStreamToken t) {
   final StringBuilder sb = new StringBuilder();
   for (; t != null; t = filter.getHiddenAfter(t)) {
     if (sb.length() == 0) {
       sb.append("[");
     }
     sb.append(t.getText().replace("\n", "\\n"));
   }
   if (sb.length() > 0) {
     sb.append("]");
   }
   return sb.toString();
 }
예제 #2
0
 CommonHiddenStreamToken getHiddenAfter(final CommonHiddenStreamToken t) {
   return filter.getHiddenAfter(t);
 }