org.eclipse.gmt.umlx.editor.builder
Class MarkerErrorHandler<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E>

java.lang.Object
  extended by org.eclipse.gmt.umlx.cst.parser.AbstractErrorHandler
      extended by org.eclipse.gmt.umlx.editor.builder.MarkerErrorHandler<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E>
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
Direct Known Subclasses:
EcoreMarkerErrorHandler

public abstract class MarkerErrorHandler<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E>
extends org.eclipse.gmt.umlx.cst.parser.AbstractErrorHandler


Field Summary
static java.lang.String BUILDER_ID
           
 
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
MarkerErrorHandler(ICreationFactory creationFactory, org.eclipse.core.resources.IResource resource)
           
 
Method Summary
 void addMarker(int severity, java.lang.String message, int lineNumber, int charStart, int charEnd)
           
 void flush(org.eclipse.core.runtime.IProgressMonitor monitor)
           
 boolean isSameMarker(java.util.Map<?,?> oldAttributes, java.util.Map<java.lang.String,java.lang.Object> newAttributes)
          Return true if newAttributes and oldAttributes provide the same marker description.
 void lexerError(int errorCode, int startOffset, int endOffset)
           
 void parserError(int errorCode, int leftToken, int rightToken, java.lang.String tokenText)
           
 void semanticError(java.lang.String rule, java.lang.String message, int startOffset, int endOffset)
           
 void setPage(java.lang.String page)
           
 
Methods inherited from class org.eclipse.gmt.umlx.cst.parser.AbstractErrorHandler
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
 

Field Detail

BUILDER_ID

public static final java.lang.String BUILDER_ID
See Also:
Constant Field Values
Constructor Detail

MarkerErrorHandler

public MarkerErrorHandler(ICreationFactory creationFactory,
                          org.eclipse.core.resources.IResource resource)
Method Detail

addMarker

public void addMarker(int severity,
                      java.lang.String message,
                      int lineNumber,
                      int charStart,
                      int charEnd)

flush

public void flush(org.eclipse.core.runtime.IProgressMonitor monitor)
Specified by:
flush in interface org.eclipse.gmt.umlx.cst.parser.ErrorHandler
Overrides:
flush in class org.eclipse.gmt.umlx.cst.parser.AbstractErrorHandler

isSameMarker

public boolean isSameMarker(java.util.Map<?,?> oldAttributes,
                            java.util.Map<java.lang.String,java.lang.Object> newAttributes)
Return true if newAttributes and oldAttributes provide the same marker description.


lexerError

public void lexerError(int errorCode,
                       int startOffset,
                       int endOffset)

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 message,
                          int startOffset,
                          int endOffset)

setPage

public void setPage(java.lang.String page)