|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry.util.DescribedLocation
public class DescribedLocation
Implementation of 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 Summary | |
|---|---|
DescribedLocation(org.apache.hivemind.Resource resource,
String description)
|
|
| Method Summary | |
|---|---|
boolean |
equals(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. |
String |
toString()
Returns the description provided in the constructor. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DescribedLocation(org.apache.hivemind.Resource resource,
String description)
| Method Detail |
|---|
public String toString()
toString in class 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(Object other)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||