public static class ProblemHandlerWrapper.Tee extends ProblemHandlerWrapper
ProblemHandlerWrapper.TeeProblemHandler.Phase, ProblemHandler.SeverityERROR_MESSAGES| Constructor and Description |
|---|
Tee(ProblemHandler delegate,
ProblemHandler tee)
Initializes me with the two problem-handler instances to which I
delegate.
|
| Modifier and Type | Method and Description |
|---|---|
void |
analyzerProblem(ProblemHandler.Severity problemSeverity,
String problemMessage,
String processingContext,
int startOffset,
int endOffset)
Convenience method typically invoking
handleProblem
with a analyzerProblem processing phase. |
void |
beginParse()
Notifies me that parsing is about to begin, from which I may receive
problems.
|
void |
beginValidation()
Notifies me that validation is about to begin, from which I may receive
problems.
|
void |
endParse()
Notifies me that parsing has completed, and I will get no further
problems in this session.
|
void |
endValidation()
Notifies me that validation has completed, and I will get no further
problems in this session.
|
void |
flush(Monitor monitor)
Flush all problems to their recipient.
|
void |
handleProblem(ProblemHandler.Severity problemSeverity,
ProblemHandler.Phase processingPhase,
String problemMessage,
String processingContext,
int startOffset,
int endOffset)
Handle a problem of problemSeverity that has arisen during processingPhase and which
is explained by problemMessage optionally clarified, if non-null, by processingContext,
and if non-negative by the startOffset and endOffset character indexes in the parsing stream.
|
void |
lexerProblem(ProblemHandler.Severity problemSeverity,
String problemMessage,
String processingContext,
int startOffset,
int endOffset)
Convenience method typically invoking
handleProblem
with a lexerProblem processing phase. |
void |
parserProblem(ProblemHandler.Severity problemSeverity,
String problemMessage,
String processingContext,
int startOffset,
int endOffset)
Convenience method typically invoking
handleProblem
with a parserProblem processing phase. |
void |
setErrorReportLineOffset(int offset)
Sets the line offset for reporting errors.
|
void |
setParser(AbstractParser parser)
Define the syntactic parser from which source tokens and text may be obtained.
|
void |
utilityProblem(ProblemHandler.Severity problemSeverity,
String problemMessage,
String processingContext,
int startOffset,
int endOffset)
Convenience method typically invoking
handleProblem
with a utilityProblem processing phase. |
void |
validatorProblem(ProblemHandler.Severity problemSeverity,
String problemMessage,
String processingContext,
int startOffset,
int endOffset)
Convenience method typically invoking
handleProblem
with a validatorProblem processing phase. |
getErrorReportLineOffset, getParserpublic Tee(ProblemHandler delegate, ProblemHandler tee)
delegate - one delegatetee - the additional delegatepublic void analyzerProblem(ProblemHandler.Severity problemSeverity, String problemMessage, String processingContext, int startOffset, int endOffset)
ProblemHandlerhandleProblem
with a analyzerProblem processing phase.analyzerProblem in interface ProblemHandleranalyzerProblem in class ProblemHandlerWrapperproblemSeverity - 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 unknownpublic void beginParse()
ProblemHandlerbeginParse in interface ProblemHandlerbeginParse in class ProblemHandlerWrapperpublic void beginValidation()
ProblemHandlerbeginValidation in interface ProblemHandlerbeginValidation in class ProblemHandlerWrapperpublic void endParse()
ProblemHandlerendParse in interface ProblemHandlerendParse in class ProblemHandlerWrapperpublic void endValidation()
ProblemHandlerendValidation in interface ProblemHandlerendValidation in class ProblemHandlerWrapperpublic void flush(Monitor monitor)
ProblemHandlerflush in interface ProblemHandlerflush in class ProblemHandlerWrappermonitor - an optional EMF monitor for reporting progress. May be
null if not needed by the callerpublic void handleProblem(ProblemHandler.Severity problemSeverity, ProblemHandler.Phase processingPhase, String problemMessage, String processingContext, int startOffset, int endOffset)
ProblemHandlerhandleProblem in interface ProblemHandlerhandleProblem in class ProblemHandlerWrapperproblemSeverity - 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 void lexerProblem(ProblemHandler.Severity problemSeverity, String problemMessage, String processingContext, int startOffset, int endOffset)
ProblemHandlerhandleProblem
with a lexerProblem processing phase.lexerProblem in interface ProblemHandlerlexerProblem in class ProblemHandlerWrapperproblemSeverity - 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 unknownpublic 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 ProblemHandlerWrapperproblemSeverity - 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 unknownpublic void setErrorReportLineOffset(int offset)
ProblemHandlersetErrorReportLineOffset in interface ProblemHandlersetErrorReportLineOffset in class ProblemHandlerWrapperpublic void setParser(AbstractParser parser)
ProblemHandlersetParser in interface ProblemHandlersetParser in class ProblemHandlerWrapperpublic void utilityProblem(ProblemHandler.Severity problemSeverity, String problemMessage, String processingContext, int startOffset, int endOffset)
ProblemHandlerhandleProblem
with a utilityProblem processing phase.utilityProblem in interface ProblemHandlerutilityProblem in class ProblemHandlerWrapperproblemSeverity - 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 unknownpublic void validatorProblem(ProblemHandler.Severity problemSeverity, String problemMessage, String processingContext, int startOffset, int endOffset)
ProblemHandlerhandleProblem
with a validatorProblem processing phase.validatorProblem in interface ProblemHandlervalidatorProblem in class ProblemHandlerWrapperproblemSeverity - 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 unknownCopyright © 2015 Open eHealth Foundation. All rights reserved.