Package aQute.libg.reporter
Class ReporterMessages.WARNINGImpl
- java.lang.Object
-
- aQute.libg.reporter.ReporterMessages.WARNINGImpl
-
- All Implemented Interfaces:
Messages.WARNING,Reporter.SetLocation
- Direct Known Subclasses:
ReporterMessages.ERRORImpl
- Enclosing class:
- ReporterMessages
static class ReporterMessages.WARNINGImpl extends java.lang.Object implements Messages.WARNING
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Reporter.SetLocationloc
-
Constructor Summary
Constructors Constructor Description WARNINGImpl(Reporter.SetLocation loc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Reporter.SetLocationcontext(java.lang.String context)Set the context in the header.Reporter.SetLocationdetails(java.lang.Object details)Pass a DTO containing detailed information about the error.Reporter.SetLocationfile(java.lang.String file)Set the file locationReporter.SetLocationheader(java.lang.String header)Set the header/section location.Reporter.SetLocationlength(int length)Reporter.SetLocationline(int n)Set the line number.Report.Locationlocation()Reporter.SetLocationmethod(java.lang.String methodName)Set the method where the error is reported.Reporter.SetLocationreference(java.lang.String reference)Set a reference for the error (url or so)
-
-
-
Field Detail
-
loc
Reporter.SetLocation loc
-
-
Constructor Detail
-
WARNINGImpl
public WARNINGImpl(Reporter.SetLocation loc)
-
-
Method Detail
-
file
public Reporter.SetLocation file(java.lang.String file)
Description copied from interface:Reporter.SetLocationSet the file location- Specified by:
filein interfaceReporter.SetLocation
-
header
public Reporter.SetLocation header(java.lang.String header)
Description copied from interface:Reporter.SetLocationSet the header/section location. This is normally the header in a manifest or properties file.- Specified by:
headerin interfaceReporter.SetLocation
-
context
public Reporter.SetLocation context(java.lang.String context)
Description copied from interface:Reporter.SetLocationSet the context in the header.- Specified by:
contextin interfaceReporter.SetLocation
-
method
public Reporter.SetLocation method(java.lang.String methodName)
Description copied from interface:Reporter.SetLocationSet the method where the error is reported.- Specified by:
methodin interfaceReporter.SetLocation
-
line
public Reporter.SetLocation line(int n)
Description copied from interface:Reporter.SetLocationSet the line number. Line 0 is the top line.- Specified by:
linein interfaceReporter.SetLocation
-
reference
public Reporter.SetLocation reference(java.lang.String reference)
Description copied from interface:Reporter.SetLocationSet a reference for the error (url or so)- Specified by:
referencein interfaceReporter.SetLocation
-
details
public Reporter.SetLocation details(java.lang.Object details)
Description copied from interface:Reporter.SetLocationPass a DTO containing detailed information about the error. This can be recognised by other tools (e.g. bndtools) and used for further error reporting/fixing.- Specified by:
detailsin interfaceReporter.SetLocation
-
location
public Report.Location location()
- Specified by:
locationin interfaceReporter.SetLocation
-
length
public Reporter.SetLocation length(int length)
- Specified by:
lengthin interfaceReporter.SetLocation
-
-