org.eclipse.gmt.umlx.editor.builder
Class ErrorCounter
java.lang.Object
org.eclipse.gmt.umlx.cst.parser.AbstractErrorHandler
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
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 |
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 |
ErrorCounter
public ErrorCounter()
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)