public interface ShellLexer
| Modifier and Type | Method and Description |
|---|---|
Token |
getToken()
|
Token |
next()
Contrary to the
scan() method, the tokens are returned one by one by this method: it resumes scanning
until the next regular expression is matched, the end of input is encountered or an I/O error occurs |
List<Token> |
scan()
Returns all non-overlapping found tokens for each recognized token in the stream set by the constructor.
|
List<Token> scan() throws IOException
IOException - if an error occurred reading the input scriptToken next() throws IOException
scan() method, the tokens are returned one by one by this method: it resumes scanning
until the next regular expression is matched, the end of input is encountered or an I/O error occursIOException - if any I/O error occursToken getToken()
Copyright © 2018–2019. All rights reserved.