org.apache.tapestry.annotations
Class AnnotationLocation

java.lang.Object
  extended by org.apache.tapestry.annotations.AnnotationLocation
All Implemented Interfaces:
org.apache.hivemind.Location

public class AnnotationLocation
extends java.lang.Object
implements org.apache.hivemind.Location

Implementation of Location that is used to identify the class and/or method and annotation. This is useful for line-precise exception reporting of errors related to annotations.

Since:
4.0
Author:
Howard Lewis Ship

Constructor Summary
AnnotationLocation(org.apache.hivemind.Resource resource, java.lang.String description)
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 int getColumnNumber()
          Always returns 0.
 int getLineNumber()
          Always returns 0.
 org.apache.hivemind.Resource getResource()
          Returns a resource corresponding to the Java class.
 java.lang.String toString()
          Returns the location's description.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnnotationLocation

public AnnotationLocation(org.apache.hivemind.Resource resource,
                          java.lang.String description)
Method Detail

toString

public java.lang.String toString()
Returns the location's description.

Overrides:
toString in class java.lang.Object

getResource

public org.apache.hivemind.Resource getResource()
Returns a resource corresponding to the Java class.

Specified by:
getResource in interface org.apache.hivemind.Location

getLineNumber

public int getLineNumber()
Always returns 0.

Specified by:
getLineNumber in interface org.apache.hivemind.Location

getColumnNumber

public int getColumnNumber()
Always returns 0.

Specified by:
getColumnNumber in interface org.apache.hivemind.Location

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object