public class StringProblemHandler extends AbstractProblemHandler
StringProblemHandler counts and accumulates all problem reports, so that
all problems may be processed on completion of semantic/syntactic/lexical analysis.ProblemHandler.Phase, ProblemHandler.SeverityERROR_MESSAGESBEFORE_CODE, DELETION_CODE, EOF_CODE, ERROR_CODE, ERROR_RULE_ERROR_CODE, ERROR_RULE_WARNING_CODE, errorMsgText, INSERTION_CODE, INVALID_CODE, INVALID_TOKEN_CODE, LEX_ERROR_CODE, MERGE_CODE, MISPLACED_CODE, NO_MESSAGE_CODE, SCOPE_CODE, SECONDARY_CODE, SUBSTITUTION_CODE| Constructor and Description |
|---|
StringProblemHandler(AbstractParser parser) |
| Modifier and Type | Method and Description |
|---|---|
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. |
analyzerProblem, beginParse, beginValidation, endParse, endValidation, flush, getErrorReportLineOffset, getParser, handleProblem, lexerProblem, parserProblem, setErrorReportLineOffset, setParser, utilityProblem, validatorProblempublic StringProblemHandler(AbstractParser parser)
protected void addProblem(java.lang.String problemMessage)
addProblem in class AbstractProblemHandlerproblemMessage - the problem descriptionpublic int getProblemCount()
public java.lang.String getProblemString()
addProblem invocation argument with a new-line following each.