public class OCLProblemHandler extends AbstractProblemHandler
OCLProblemHandler accumulates a DiagnosticChain of
problems.ProblemHandler.Phase, ProblemHandler.SeverityERROR_MESSAGES| Constructor and Description |
|---|
OCLProblemHandler(AbstractParser parser) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginParse()
This default implementation does nothing.
|
void |
beginValidation()
This default implementation does nothing.
|
void |
clearDiagnostic() |
Diagnostic |
getDiagnostic() |
protected IPrsStream |
getIPrsStream() |
void |
handleProblem(ProblemHandler.Severity problemSeverity,
ProblemHandler.Phase processingPhase,
String problemMessage,
String processingContext,
int startOffset,
int endOffset)
Implements the interface, invoking
addProblem with a line comprising
processingPhase-problemSeverity in processingContext; lineNumber : problemMessage. |
void |
parserProblem(ProblemHandler.Severity problemSeverity,
String problemMessage,
String processingContext,
int startOffset,
int endOffset)
Convenience method typically invoking
handleProblem
with a parserProblem processing phase. |
addProblem, analyzerProblem, endParse, endValidation, flush, getErrorReportLineOffset, getParser, lexerProblem, setErrorReportLineOffset, setParser, utilityProblem, validatorProblempublic OCLProblemHandler(AbstractParser parser)
public void handleProblem(ProblemHandler.Severity problemSeverity, ProblemHandler.Phase processingPhase, String problemMessage, String processingContext, int startOffset, int endOffset)
AbstractProblemHandleraddProblem with a line comprising
processingPhase-problemSeverity in processingContext; lineNumber : problemMessage.handleProblem in interface ProblemHandlerhandleProblem in class AbstractProblemHandlerproblemSeverity - text describing the problem severity (e.g. errorSeverity)processingPhase - optional text describing the processing phase (e.g. analyzerProblem)problemMessage - message describing the problemprocessingContext - optional message describing the reporting context (e.g. "PathNameCS")startOffset - (inclusive) index of first source character influencing the problem, -ve if unknownendOffset - (exclusive) index of last source character influencing the problem, -ve if unknownpublic Diagnostic getDiagnostic()
public void beginParse()
AbstractProblemHandlerbeginParse in interface ProblemHandlerbeginParse in class AbstractProblemHandlerpublic void beginValidation()
AbstractProblemHandlerbeginValidation in interface ProblemHandlerbeginValidation in class AbstractProblemHandlerpublic void clearDiagnostic()
public void parserProblem(ProblemHandler.Severity problemSeverity, String problemMessage, String processingContext, int startOffset, int endOffset)
ProblemHandlerhandleProblem
with a parserProblem processing phase.parserProblem in interface ProblemHandlerparserProblem in class AbstractProblemHandlerproblemSeverity - text describing the problem severityproblemMessage - message describing the problemprocessingContext - optional message describing the reporting context (e.g. "PathNameCS")startOffset - (inclusive) index of first source character influencing the problem, -ve if unknownendOffset - (exclusive) index of last source character influencing the problem, -ve if unknownprotected IPrsStream getIPrsStream()
Copyright © 2015 Open eHealth Foundation. All rights reserved.