|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Location
A location in a resource. The location is composed of the URI of the resource, and the line and column numbers within that resource (when available), along with a description.
Locations are mostly provided by Locatables objects.
| Field Summary | |
|---|---|
static Location |
UNKNOWN
Constant for unknown locations. |
| Method Summary | |
|---|---|
int |
getColumnNumber()
Get the column number of this location |
java.lang.String |
getDescription()
Get the description of this location |
int |
getLineNumber()
Get the line number of this location |
java.util.List<java.lang.String> |
getSnippet(int padding)
Gets a source code snippet with the default padding |
java.lang.String |
getURI()
Get the URI of this location |
| Field Detail |
|---|
static final Location UNKNOWN
| Method Detail |
|---|
java.lang.String getDescription()
null)java.lang.String getURI()
null if unknown).int getLineNumber()
-1 if unknown)int getColumnNumber()
-1 if unknown)java.util.List<java.lang.String> getSnippet(int padding)
padding - The amount of lines before and after the error to include
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||