Returns a token to the stream, so that it will be returned by the next call to get(). @throws IllegalStateException There are already ungotten tokens.
()
| 352 | * @throws IllegalStateException There are already ungotten tokens. |
| 353 | */ |
| 354 | public void |
| 355 | unget() { |
| 356 | if (ungottenToken) |
| 357 | throw new IllegalStateException |
| 358 | ("Cannot unget multiple tokens"); |
| 359 | if (current.type == EOL) |
| 360 | line--; |
| 361 | ungottenToken = true; |
| 362 | } |
| 363 | |
| 364 | /** |
| 365 | * Gets the next token from a tokenizer and converts it to a string. |
no outgoing calls
no test coverage detected