(int kind)
| 4086 | static private final LookaheadSuccess jj_ls = new LookaheadSuccess(); |
| 4087 | |
| 4088 | private boolean jj_scan_token(int kind) { |
| 4089 | if (jj_scanpos == jj_lastpos) { |
| 4090 | jj_la--; |
| 4091 | if (jj_scanpos.next == null) { |
| 4092 | jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken(); |
| 4093 | } else { |
| 4094 | jj_lastpos = jj_scanpos = jj_scanpos.next; |
| 4095 | } |
| 4096 | } else { |
| 4097 | jj_scanpos = jj_scanpos.next; |
| 4098 | } |
| 4099 | if (jj_rescan) { |
| 4100 | int i = 0; |
| 4101 | Token tok = token; |
| 4102 | while (tok != null && tok != jj_scanpos) { |
| 4103 | i++; |
| 4104 | tok = tok.next; |
| 4105 | } |
| 4106 | if (tok != null) { |
| 4107 | jj_add_error_token(kind, i); |
| 4108 | } |
| 4109 | } |
| 4110 | if (jj_scanpos.kind != kind) { |
| 4111 | return true; |
| 4112 | } |
| 4113 | if (jj_la == 0 && jj_scanpos == jj_lastpos) { |
| 4114 | throw jj_ls; |
| 4115 | } |
| 4116 | return false; |
| 4117 | } |
| 4118 | |
| 4119 | |
| 4120 | /** Get the next Token. */ |
no test coverage detected