public final class StringLocation extends Object implements Location
Location used when the underlying resource isn't really known.| Constructor and Description |
|---|
StringLocation(String description,
int line) |
| Modifier and Type | Method and Description |
|---|---|
int |
getColumn()
Returns 0.
|
int |
getLine()
The line number within the resource, if known, or -1 otherwise.
|
Resource |
getResource()
Returns null; we don't know where the file really is (it's probably a class on the class path).
|
String |
toString() |
public StringLocation(String description, int line)
public int getLine()
Locationpublic Resource getResource()
getResource in interface Location5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.