public class ReporterAdapter extends Object implements Reporter, Report, Runnable
Reporter.SetLocationReport.Location| Constructor and Description |
|---|
ReporterAdapter() |
ReporterAdapter(Appendable app) |
| Modifier and Type | Method and Description |
|---|---|
void |
addErrors(String prefix,
Collection<String> errors)
Add a number of errors
|
void |
addWarnings(String prefix,
Collection<String> warnings)
Add a number of warnings
|
boolean |
check(String... pattern) |
Reporter.SetLocation |
error(String s,
Object... args)
Create an error.
|
Reporter.SetLocation |
exception(Throwable t,
String s,
Object... args)
Dedicated message for an exception.
|
List<String> |
getErrors()
Return the errors.
|
boolean |
getInfo(Report other) |
boolean |
getInfo(Report other,
String prefix) |
Report.Location |
getLocation(String msg)
Return the errors for the given error or warning.
|
<T> T |
getMessages(Class<T> c)
Return a messages object bound to this adapter
|
Formatter |
getOut() |
List<String> |
getWarnings()
Return the warnings.
|
boolean |
isExceptions() |
boolean |
isOk()
Check if this report has any relevant errors that should make the run
associated with this report invalid.
|
boolean |
isPedantic()
The provider of the reporter wants pedantic reporting, meaning every
possible warning should be reported.
|
boolean |
isPerfect() |
boolean |
isTrace() |
void |
progress(float progress,
String s,
Object... args)
Deprecated.
Use SLF4J
Logger.info(aQute.libg.slf4j.GradleLogging.LIFECYCLE)
instead.
|
void |
report(Appendable out)
Report the errors and warnings
|
void |
run()
Handy routine that can be extended by subclasses so they can run inside
the context
|
void |
setExceptions(boolean exceptions) |
void |
setPedantic(boolean pedantic) |
void |
setTrace(boolean b) |
void |
trace(String s,
Object... args)
Deprecated.
Use SLF4J Logger.debug instead.
|
Reporter.SetLocation |
warning(String s,
Object... args)
Create a warning.
|
public ReporterAdapter()
public ReporterAdapter(Appendable app)
public boolean isExceptions()
public void setExceptions(boolean exceptions)
exceptions - the exceptions to setpublic Formatter getOut()
public boolean isTrace()
public void setPedantic(boolean pedantic)
pedantic - the pedantic to setpublic Reporter.SetLocation error(String s, Object... args)
Reporterpublic Reporter.SetLocation exception(Throwable t, String s, Object... args)
Reporterpublic Reporter.SetLocation warning(String s, Object... args)
Reporter@Deprecated public void progress(float progress, String s, Object... args)
Reporter@Deprecated public void trace(String s, Object... args)
Reporterpublic List<String> getWarnings()
ReportgetWarnings in interface Reportpublic List<String> getErrors()
Reportpublic boolean isPedantic()
ReporterisPedantic in interface Reporterpublic void setTrace(boolean b)
public boolean isOk()
Reportpublic boolean isPerfect()
public boolean check(String... pattern)
public void report(Appendable out)
public boolean getInfo(Report other)
public Report.Location getLocation(String msg)
ReportgetLocation in interface Reportmsg - The messagepublic void run()
public <T> T getMessages(Class<T> c)
public void addErrors(String prefix, Collection<String> errors)
public void addWarnings(String prefix, Collection<String> warnings)
Copyright © 2019 aQute SARL. All rights reserved.