public class ErrorCountTranspilationHandler extends AbstractDelegatedTranspilationHandler
OUTPUT_LOGGER| Constructor and Description |
|---|
ErrorCountTranspilationHandler(TranspilationHandler delegate)
Decorates the given transpilation handler.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getErrorCount()
Returns the error count.
|
int |
getProblemCount()
Returns the problem count (error + warning count).
|
int |
getWarningCount()
Returns the warning count.
|
boolean |
isDisabled()
Returns false if this handler actually counts anything.
|
void |
report(JSweetProblem problem,
SourcePosition sourcePosition,
String message)
Count the problems and delegates to the decorated transpilation handler.
|
void |
setDisabled(boolean disabled)
Enables/disables the counting.
|
onCompletedpublic ErrorCountTranspilationHandler(TranspilationHandler delegate)
public void report(JSweetProblem problem, SourcePosition sourcePosition, String message)
report in interface TranspilationHandlerreport in class AbstractDelegatedTranspilationHandlerproblem - the reported problemsourcePosition - the position in the source filemessage - the reported messagepublic int getErrorCount()
public int getWarningCount()
public int getProblemCount()
public boolean isDisabled()
public void setDisabled(boolean disabled)