|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ocl.util.ProblemHandlerWrapper
org.eclipse.ocl.util.ProblemHandlerWrapper.Tee
public static class ProblemHandlerWrapper.Tee
Like the UNIX tool tee, a Tee forks problem handling in two directions, that is, to two other problem-handler instances.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.ocl.util.ProblemHandlerWrapper |
---|
ProblemHandlerWrapper.Tee |
Nested classes/interfaces inherited from interface org.eclipse.ocl.lpg.ProblemHandler |
---|
ProblemHandler.Phase, ProblemHandler.Severity |
Field Summary |
---|
Fields inherited from interface org.eclipse.ocl.lpg.ProblemHandler |
---|
ERROR_MESSAGES |
Constructor Summary | |
---|---|
ProblemHandlerWrapper.Tee(ProblemHandler delegate,
ProblemHandler tee)
Initializes me with the two problem-handler instances to which I delegate. |
Method Summary | |
---|---|
void |
analyzerProblem(ProblemHandler.Severity problemSeverity,
java.lang.String problemMessage,
java.lang.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(org.eclipse.emf.common.util.Monitor monitor)
Flush all problems to their recipient. |
void |
handleProblem(ProblemHandler.Severity problemSeverity,
ProblemHandler.Phase processingPhase,
java.lang.String problemMessage,
java.lang.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,
java.lang.String problemMessage,
java.lang.String processingContext,
int startOffset,
int endOffset)
Convenience method typically invoking handleProblem
with a lexerProblem processing phase. |
void |
parserProblem(ProblemHandler.Severity problemSeverity,
java.lang.String problemMessage,
java.lang.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,
java.lang.String problemMessage,
java.lang.String processingContext,
int startOffset,
int endOffset)
Convenience method typically invoking handleProblem
with a utilityProblem processing phase. |
void |
validatorProblem(ProblemHandler.Severity problemSeverity,
java.lang.String problemMessage,
java.lang.String processingContext,
int startOffset,
int endOffset)
Convenience method typically invoking handleProblem
with a validatorProblem processing phase. |
Methods inherited from class org.eclipse.ocl.util.ProblemHandlerWrapper |
---|
getErrorReportLineOffset, getParser |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProblemHandlerWrapper.Tee(ProblemHandler delegate, ProblemHandler tee)
delegate
- one delegatetee
- the additional delegateMethod Detail |
---|
public void analyzerProblem(ProblemHandler.Severity problemSeverity, java.lang.String problemMessage, java.lang.String processingContext, int startOffset, int endOffset)
ProblemHandler
handleProblem
with a analyzerProblem
processing phase.
analyzerProblem
in interface ProblemHandler
analyzerProblem
in class ProblemHandlerWrapper
problemSeverity
- 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()
ProblemHandler
beginParse
in interface ProblemHandler
beginParse
in class ProblemHandlerWrapper
public void beginValidation()
ProblemHandler
beginValidation
in interface ProblemHandler
beginValidation
in class ProblemHandlerWrapper
public void endParse()
ProblemHandler
endParse
in interface ProblemHandler
endParse
in class ProblemHandlerWrapper
public void endValidation()
ProblemHandler
endValidation
in interface ProblemHandler
endValidation
in class ProblemHandlerWrapper
public void flush(org.eclipse.emf.common.util.Monitor monitor)
ProblemHandler
flush
in interface ProblemHandler
flush
in class ProblemHandlerWrapper
monitor
- an optional EMF monitor for reporting progress. May be
null
if not needed by the callerpublic void handleProblem(ProblemHandler.Severity problemSeverity, ProblemHandler.Phase processingPhase, java.lang.String problemMessage, java.lang.String processingContext, int startOffset, int endOffset)
ProblemHandler
handleProblem
in interface ProblemHandler
handleProblem
in class ProblemHandlerWrapper
problemSeverity
- 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, java.lang.String problemMessage, java.lang.String processingContext, int startOffset, int endOffset)
ProblemHandler
handleProblem
with a lexerProblem
processing phase.
lexerProblem
in interface ProblemHandler
lexerProblem
in class ProblemHandlerWrapper
problemSeverity
- 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, java.lang.String problemMessage, java.lang.String processingContext, int startOffset, int endOffset)
ProblemHandler
handleProblem
with a parserProblem
processing phase.
parserProblem
in interface ProblemHandler
parserProblem
in class ProblemHandlerWrapper
problemSeverity
- 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)
ProblemHandler
setErrorReportLineOffset
in interface ProblemHandler
setErrorReportLineOffset
in class ProblemHandlerWrapper
public void setParser(AbstractParser parser)
ProblemHandler
setParser
in interface ProblemHandler
setParser
in class ProblemHandlerWrapper
public void utilityProblem(ProblemHandler.Severity problemSeverity, java.lang.String problemMessage, java.lang.String processingContext, int startOffset, int endOffset)
ProblemHandler
handleProblem
with a utilityProblem
processing phase.
utilityProblem
in interface ProblemHandler
utilityProblem
in class ProblemHandlerWrapper
problemSeverity
- 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, java.lang.String problemMessage, java.lang.String processingContext, int startOffset, int endOffset)
ProblemHandler
handleProblem
with a validatorProblem
processing phase.
validatorProblem
in interface ProblemHandler
validatorProblem
in class ProblemHandlerWrapper
problemSeverity
- 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 unknown
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |