org.eclipse.gmt.umlx.eqvtr.cst.environment
Class PrintStreamErrorHandler

java.lang.Object
  extended by org.eclipse.ocl.internal.parser.AbstractErrorHandler
      extended by org.eclipse.gmt.umlx.eqvtr.cst.environment.PrintStreamErrorHandler
All Implemented Interfaces:
lpg.lpgjavaruntime.ParseErrorCodes, ErrorHandler, LexerErrorHandler, ParserErrorHandler, SemanticErrorHandler

public class PrintStreamErrorHandler
extends AbstractErrorHandler


Field Summary
 
Fields inherited from interface org.eclipse.ocl.internal.parser.ErrorHandler
errorMessages
 
Fields inherited from interface lpg.lpgjavaruntime.ParseErrorCodes
BEFORE_CODE, DELETION_CODE, EOF_CODE, ERROR_CODE, errorMsgText, INSERTION_CODE, INVALID_CODE, INVALID_TOKEN_CODE, LEX_ERROR_CODE, MERGE_CODE, MISPLACED_CODE, SCOPE_CODE, SECONDARY_CODE, SUBSTITUTION_CODE
 
Constructor Summary
PrintStreamErrorHandler(AbstractParser parser, java.io.File file, java.io.PrintStream stream)
           
 
Method Summary
 void lexerError(int errorCode, int leftToken, int rightToken)
           
 void parserError(int errorCode, int leftToken, int rightToken, java.lang.String tokenText)
           
 void semanticError(java.lang.String rule, java.lang.String errorMessage, int startOffset, int endOffset)
           
 
Methods inherited from class org.eclipse.ocl.internal.parser.AbstractErrorHandler
flush, formatClass, formatEClassName, formatName, formatPath, formatPath, formatString, formatType, getErrorReportLineOffset, getParser, getPrsStream, setErrorReportLineOffset, setParser
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintStreamErrorHandler

public PrintStreamErrorHandler(AbstractParser parser,
                               java.io.File file,
                               java.io.PrintStream stream)
Method Detail

lexerError

public void lexerError(int errorCode,
                       int leftToken,
                       int rightToken)

parserError

public void parserError(int errorCode,
                        int leftToken,
                        int rightToken,
                        java.lang.String tokenText)

semanticError

public void semanticError(java.lang.String rule,
                          java.lang.String errorMessage,
                          int startOffset,
                          int endOffset)