public final class StringLocation extends java.lang.Object implements Location
Location
used when the underlying resource isn't really known.Constructor and Description |
---|
StringLocation(java.lang.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).
|
java.lang.String |
toString() |
public StringLocation(java.lang.String description, int line)
public java.lang.String toString()
toString
in class java.lang.Object
public int getLine()
Location
public Resource getResource()
getResource
in interface Location
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.