Package io.github.qishr.cascara.common.diagnostic
Class NoOpReporter
java.lang.Object
io.github.qishr.cascara.common.diagnostic.NoOpReporter
All Implemented Interfaces:
Reporter
public class NoOpReporter
Constructor Summary
| Constructor | Description |
|---|---|
| NoOpReporter(Consumer<String> writer) | |
| NoOpReporter() |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| public boolean | collectsProblems() | |
| public Level | getLevel() | |
| public boolean | isSilent() | |
| public NoOpReporter | setLevel(Level level) | |
| public Reporter | setLineConsumer(Consumer<String> logger) | |
| public NoOpReporter | setDiagnosticConsumer(Consumer<Diagnostic> diagnosticCollector) | |
| public NoOpReporter | setProblemConsumer(Consumer<Diagnostic> diagnosticCollector) | |
| public NoOpReporter | setDisableSystemOutput(boolean b) | |
| public ReportWriter | getWriter(Level level) | |
| public void | error(Exception e) | |
| public void | trace(String format, Object[] args) | |
| public void | debug(String format, Object[] args) | |
| public void | info(DiagnosticCode code, Object[] args) | |
| public void | warn(DiagnosticCode code, Object[] args) | |
| public void | error(DiagnosticCode code, Object[] args) | |
| public void | error(Throwable cause, DiagnosticCode code, Object[] args) | |
| public void | infoAt(int line, int column, DiagnosticCode code, Object[] args) | |
| public void | warnAt(int line, int column, DiagnosticCode code, Object[] args) | |
| public void | errorAt(int line, int column, DiagnosticCode code, Object[] args) | |
| public void | errorAt(int line, int column, Throwable cause, DiagnosticCode code, Object[] args) | |
| public void | infoAt(int line, int column, int start, int end, DiagnosticCode code, Object[] args) | |
| public void | warnAt(int line, int column, int start, int end, DiagnosticCode code, Object[] args) | |
| public void | errorAt(int line, int column, int start, int end, DiagnosticCode code, Object[] args) | |
| public void | errorAt(int line, int column, int start, int end, Throwable cause, DiagnosticCode code, Object[] args) | |
| public void | infoAt(Token token, DiagnosticCode code, Object[] args) | |
| public void | warnAt(Token token, DiagnosticCode code, Object[] args) | |
| public void | errorAt(Token token, DiagnosticCode code, Object[] args) | |
| public void | errorAt(Token token, Throwable cause, DiagnosticCode code, Object[] args) | |
| public void | warnAt(URI uri, int line, int column, DiagnosticCode code, Object[] args) | |
| public void | errorAt(URI uri, int line, int column, DiagnosticCode code, Object[] args) | |
| public void | warnAt(URI uri, Token token, DiagnosticCode code, Object[] args) | |
| public void | errorAt(URI uri, Token token, DiagnosticCode code, Object[] args) | |
| public void | errorAt(URI uri, Token token, Throwable t, DiagnosticCode code, Object[] args) | |
| public boolean | reportsDebug() | |
| public boolean | reportsTrace() |
Method Details
collectsProblems
public boolean collectsProblems()
Specified By:
getLevel
public Level getLevel()
Specified By:
isSilent
public boolean isSilent()
Specified By:
setLevel
public NoOpReporter setLevel(Level level)
Specified By:
setLineConsumer
public Reporter setLineConsumer(Consumer<String> logger)
Specified By:
setDiagnosticConsumer
public NoOpReporter setDiagnosticConsumer(Consumer<Diagnostic> diagnosticCollector)
Specified By:
setProblemConsumer
public NoOpReporter setProblemConsumer(Consumer<Diagnostic> diagnosticCollector)
Specified By:
setDisableSystemOutput
public NoOpReporter setDisableSystemOutput(boolean b)
getWriter
public ReportWriter getWriter(Level level)
Specified By:
error
public void error(Exception e)
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(DiagnosticCode code, Object[] args)
Specified By:
warn
public void warn(DiagnosticCode code, Object[] args)
Specified By:
error
public void error(DiagnosticCode code, Object[] args)
Specified By:
error
public void error(Throwable cause, DiagnosticCode code, Object[] args)
Specified By:
infoAt
public void infoAt(int line, int column, DiagnosticCode code, Object[] args)
Specified By:
warnAt
public void warnAt(int line, int column, DiagnosticCode code, Object[] args)
Specified By:
errorAt
public void errorAt(int line, int column, DiagnosticCode code, Object[] args)
Specified By:
errorAt
public void errorAt(int line, int column, Throwable cause, DiagnosticCode code, Object[] args)
Specified By:
infoAt
public void infoAt(int line, int column, int start, int end, DiagnosticCode code, Object[] args)
Specified By:
warnAt
public void warnAt(int line, int column, int start, int end, DiagnosticCode code, Object[] args)
Specified By:
errorAt
public void errorAt(int line, int column, int start, int end, DiagnosticCode code, Object[] args)
Specified By:
errorAt
public void errorAt(int line, int column, int start, int end, Throwable cause, DiagnosticCode code, Object[] args)
Specified By:
infoAt
public void infoAt(Token token, DiagnosticCode code, Object[] args)
Specified By:
warnAt
public void warnAt(Token token, DiagnosticCode code, Object[] args)
Specified By:
errorAt
public void errorAt(Token token, DiagnosticCode code, Object[] args)
Specified By:
errorAt
public void errorAt(Token token, Throwable cause, DiagnosticCode code, Object[] args)
Specified By:
warnAt
public void warnAt(URI uri, int line, int column, DiagnosticCode code, Object[] args)
Specified By:
errorAt
public void errorAt(URI uri, int line, int column, DiagnosticCode code, Object[] args)
Specified By:
warnAt
public void warnAt(URI uri, Token token, DiagnosticCode code, Object[] args)
Specified By:
errorAt
public void errorAt(URI uri, Token token, DiagnosticCode code, Object[] args)
Specified By:
errorAt
public void errorAt(URI uri, Token token, Throwable t, DiagnosticCode code, Object[] args)
Specified By:
reportsDebug
public boolean reportsDebug()
Specified By:
reportsTrace
public boolean reportsTrace()
Specified By: