Package aQute.bnd.osgi
Class Processor.SetLocationImpl
- java.lang.Object
-
- aQute.service.reporter.Report.Location
-
- aQute.bnd.osgi.Processor.SetLocationImpl
-
- All Implemented Interfaces:
Reporter.SetLocation
- Enclosing class:
- Processor
static class Processor.SetLocationImpl extends Report.Location implements Reporter.SetLocation
-
-
Field Summary
-
Fields inherited from class aQute.service.reporter.Report.Location
context, details, file, header, length, line, message, methodName, reference
-
-
Constructor Summary
Constructors Constructor Description SetLocationImpl(java.lang.String s)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Reporter.SetLocation
context(java.lang.String context)
Set the context in the header.Reporter.SetLocation
details(java.lang.Object details)
Pass a DTO containing detailed information about the error.Reporter.SetLocation
file(java.lang.String file)
Set the file locationReporter.SetLocation
header(java.lang.String header)
Set the header/section location.Reporter.SetLocation
length(int length)
Reporter.SetLocation
line(int n)
Set the line number.Report.Location
location()
Reporter.SetLocation
method(java.lang.String methodName)
Set the method where the error is reported.Reporter.SetLocation
reference(java.lang.String reference)
Set a reference for the error (url or so)
-
-
-
Method Detail
-
file
public Reporter.SetLocation file(java.lang.String file)
Description copied from interface:Reporter.SetLocation
Set the file location- Specified by:
file
in interfaceReporter.SetLocation
-
header
public Reporter.SetLocation header(java.lang.String header)
Description copied from interface:Reporter.SetLocation
Set the header/section location. This is normally the header in a manifest or properties file.- Specified by:
header
in interfaceReporter.SetLocation
-
context
public Reporter.SetLocation context(java.lang.String context)
Description copied from interface:Reporter.SetLocation
Set the context in the header.- Specified by:
context
in interfaceReporter.SetLocation
-
method
public Reporter.SetLocation method(java.lang.String methodName)
Description copied from interface:Reporter.SetLocation
Set the method where the error is reported.- Specified by:
method
in interfaceReporter.SetLocation
-
line
public Reporter.SetLocation line(int n)
Description copied from interface:Reporter.SetLocation
Set the line number. Line 0 is the top line.- Specified by:
line
in interfaceReporter.SetLocation
-
reference
public Reporter.SetLocation reference(java.lang.String reference)
Description copied from interface:Reporter.SetLocation
Set a reference for the error (url or so)- Specified by:
reference
in interfaceReporter.SetLocation
-
details
public Reporter.SetLocation details(java.lang.Object details)
Description copied from interface:Reporter.SetLocation
Pass 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:
details
in interfaceReporter.SetLocation
-
location
public Report.Location location()
- Specified by:
location
in interfaceReporter.SetLocation
-
length
public Reporter.SetLocation length(int length)
- Specified by:
length
in interfaceReporter.SetLocation
-
-