|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ocl.lpg.AbstractProblemHandler
org.eclipse.ocl.lpg.StringProblemHandler
public class StringProblemHandler
A StringProblemHandler
counts and accumulates all problem reports, so that
all problems may be processed on completion of semantic/syntactic/lexical analysis.
Nested Class Summary |
---|
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 | |
---|---|
StringProblemHandler(AbstractParser parser)
|
Method Summary | |
---|---|
protected void |
addProblem(java.lang.String problemMessage)
Accumulate the problemMessage followed by new-line. |
int |
getProblemCount()
Return the number of reported problems. |
java.lang.String |
getProblemString()
Return the accumulated problem report, corresponding the concatenation of each addProblem invocation argument with a new-line following each. |
Methods inherited from class org.eclipse.ocl.lpg.AbstractProblemHandler |
---|
analyzerProblem, beginParse, beginValidation, endParse, endValidation, flush, getErrorReportLineOffset, getParser, handleProblem, lexerProblem, parserProblem, setErrorReportLineOffset, setParser, utilityProblem, validatorProblem |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringProblemHandler(AbstractParser parser)
Method Detail |
---|
protected void addProblem(java.lang.String problemMessage)
addProblem
in class AbstractProblemHandler
problemMessage
- the problem descriptionpublic int getProblemCount()
public java.lang.String getProblemString()
addProblem
invocation argument with a new-line following each.
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |