|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectPrsStream
org.eclipse.ocl.lpg.DerivedPrsStream
public class DerivedPrsStream
This DerivedLexStream will be used in favour of the LpgLexStream for the OCLLexer, so that some customization are introduced and exploited by the generated OCLLexer.
Constructor Summary | |
---|---|
DerivedPrsStream(BasicEnvironment env,
ILexStream iLexStream)
|
Method Summary | |
---|---|
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,
java.lang.String[] errorInfo)
|
void |
reportErrorTokenMessage(int error_token,
java.lang.String msg)
Report error message for given error_token. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DerivedPrsStream(BasicEnvironment env, ILexStream iLexStream)
Method Detail |
---|
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, java.lang.String[] errorInfo)
public final void reportErrorTokenMessage(int error_token, java.lang.String msg)
error_token
- the error taken indexmsg
- the message to report
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |