org.eclipse.gmt.umlx.editor.builder
Class ErrorCounter

java.lang.Object
  extended by org.eclipse.gmt.umlx.cst.parser.AbstractErrorHandler
      extended by org.eclipse.gmt.umlx.editor.builder.ErrorCounter
All Implemented Interfaces:
lpg.lpgjavaruntime.ParseErrorCodes, org.eclipse.gmt.umlx.cst.parser.ErrorHandler, org.eclipse.gmt.umlx.cst.parser.LexerErrorHandler, org.eclipse.gmt.umlx.cst.parser.ParserErrorHandler, org.eclipse.gmt.umlx.cst.parser.SemanticErrorHandler

public class ErrorCounter
extends org.eclipse.gmt.umlx.cst.parser.AbstractErrorHandler


Field Summary
 
Fields inherited from interface org.eclipse.gmt.umlx.cst.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
ErrorCounter()
           
 
Method Summary
 int getErrors()
           
 int getLexerErrors()
           
 int getParserErrors()
           
 int getSemanticErrors()
           
 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.gmt.umlx.cst.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

ErrorCounter

public ErrorCounter()
Method Detail

getErrors

public int getErrors()

getLexerErrors

public int getLexerErrors()

getParserErrors

public int getParserErrors()

getSemanticErrors

public int getSemanticErrors()

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)