Package io.github.qishr.cascara.common.diagnostic
Class SilentErrorTracker
java.lang.Object
io.github.qishr.cascara.common.diagnostic.SilentErrorTracker
All Implemented Interfaces:
Reporter
public class SilentErrorTracker
Constructor Summary
| Constructor | Description |
|---|---|
| SilentErrorTracker() |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| public boolean | hasErrors() | |
| public boolean | collectsProblems() | |
| public SilentErrorTracker | setLevel(Level level) | |
| public SilentErrorTracker | setDiagnosticCollector(Consumer<Diagnostic> diagnosticCollector) | |
| public SilentErrorTracker | setProblemCollector(Consumer<Diagnostic> diagnosticCollector) | |
| public void | trace(String format, Object[] args) | |
| public void | debug(String format, Object[] args) | |
| public void | info(String format, Object[] args) | |
| public void | warn(String code, String format, Object[] args) | |
| public void | error(String code, String format, Object[] args) | |
| public void | infoAt(int line, int column, String format, Object[] args) | |
| public void | warnAt(int line, int column, String code, String format, Object[] args) | |
| public void | errorAt(int line, int column, String code, String format, Object[] args) | |
| public void | infoAt(int line, int column, int start, int end, String format, Object[] args) | |
| public void | warnAt(int line, int column, int start, int end, String code, String format, Object[] args) | |
| public void | errorAt(int line, int column, int start, int end, String code, String format, Object[] args) | |
| public void | infoAt(Token token, String format, Object[] args) | |
| public void | warnAt(Token token, String code, String format, Object[] args) | |
| public void | errorAt(Token token, String code, String format, Object[] args) |
Method Details
hasErrors
public boolean hasErrors()
collectsProblems
public boolean collectsProblems()
Specified By:
setLevel
public SilentErrorTracker setLevel(Level level)
Specified By:
setDiagnosticCollector
public SilentErrorTracker setDiagnosticCollector(Consumer<Diagnostic> diagnosticCollector)
Specified By:
setProblemCollector
public SilentErrorTracker setProblemCollector(Consumer<Diagnostic> diagnosticCollector)
Specified By:
trace
public void trace(String format, Object[] args)
Specified By:
debug
public void debug(String format, Object[] args)
Specified By:
info
public void info(String format, Object[] args)
Specified By:
warn
public void warn(String code, String format, Object[] args)
Specified By:
error
public void error(String code, String format, Object[] args)
Specified By:
infoAt
public void infoAt(int line, int column, String format, Object[] args)
Specified By:
warnAt
public void warnAt(int line, int column, String code, String format, Object[] args)
Specified By:
errorAt
public void errorAt(int line, int column, String code, String format, Object[] args)
Specified By:
infoAt
public void infoAt(int line, int column, int start, int end, String format, Object[] args)
Specified By:
warnAt
public void warnAt(int line, int column, int start, int end, String code, String format, Object[] args)
Specified By:
errorAt
public void errorAt(int line, int column, int start, int end, String code, String format, Object[] args)
Specified By:
infoAt
public void infoAt(Token token, String format, Object[] args)
Specified By:
warnAt
public void warnAt(Token token, String code, String format, Object[] args)
Specified By:
errorAt
public void errorAt(Token token, String code, String format, Object[] args)
Specified By: