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()
Location
public Resource getResource()
getResource
in interface Location
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.