public class DescribedLocation extends java.lang.Object implements org.apache.hivemind.Location
Location that is used to describe a location within
a resource. This is used when the location within the resource can't be expressed as a line and
column. One example is for setting the location of an annotation. This is useful for line-precise
exception reporting of errors related to annotations.| Constructor and Description |
|---|
DescribedLocation(org.apache.hivemind.Resource resource,
java.lang.String description) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other)
A DescribedLocation is equal to another only if their resources are equal, and their
descriptions are equal.
|
int |
getColumnNumber()
Always returns 0.
|
int |
getLineNumber()
Always returns 0.
|
org.apache.hivemind.Resource |
getResource()
Returns the resource provided in the constructor.
|
java.lang.String |
toString()
Returns the description provided in the constructor.
|
public DescribedLocation(org.apache.hivemind.Resource resource, java.lang.String description)
public java.lang.String toString()
toString in class java.lang.Objectpublic org.apache.hivemind.Resource getResource()
getResource in interface org.apache.hivemind.Locationpublic int getLineNumber()
getLineNumber in interface org.apache.hivemind.Locationpublic int getColumnNumber()
getColumnNumber in interface org.apache.hivemind.Locationpublic boolean equals(java.lang.Object other)
equals in class java.lang.Object