public class DerivedPrsStream
extends PrsStream
Constructor and Description |
---|
DerivedPrsStream(BasicEnvironment env,
ILexStream iLexStream) |
Modifier and Type | Method and Description |
---|---|
ErrorToken |
getErrorTokenAtCharacter(int offset)
This function returns the index of the token element containing the
offset specified.
|
int |
getErrorTokens() |
int |
getTokenIndexAtCharacter(int offset)
Overridden to search only the non-Error nodes, which are the only tokens
in monotonic order.
|
int |
makeErrorToken(int firsttok,
int lasttok,
int errortok,
int kind) |
void |
reportError(int errorCode,
int leftToken,
int errorToken,
int rightToken,
String[] errorInfo) |
void |
reportErrorTokenMessage(int error_token,
String msg)
Report error message for given error_token.
|
public DerivedPrsStream(BasicEnvironment env, ILexStream iLexStream)
public ErrorToken getErrorTokenAtCharacter(int offset)
public int getErrorTokens()
public int getTokenIndexAtCharacter(int offset)
public int makeErrorToken(int firsttok, int lasttok, int errortok, int kind)
public void reportError(int errorCode, int leftToken, int errorToken, int rightToken, String[] errorInfo)
public final void reportErrorTokenMessage(int error_token, String msg)
error_token
- the error taken indexmsg
- the message to reportCopyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.