public class LeolaErrorToken extends LeolaToken
Constructor and Description |
---|
LeolaErrorToken(Source source,
LeolaErrorCode errorCode,
String tokenText)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
extract()
Do nothing.
|
currentChar, getLineNumber, getPosition, getText, getType, getValue, nextChar, peekAhead, peekChar, toString
public LeolaErrorToken(Source source, LeolaErrorCode errorCode, String tokenText) throws IOException
source
- the source from where to fetch subsequent characters.errorCode
- the error code.tokenText
- the text of the erroneous token.Exception
- if an error occurred.IOException
protected void extract() throws IOException
extract
in class Token
Exception
- if an error occurred.IOException
Copyright © 2010–2015. All rights reserved.