Class LocationImpl
- java.lang.Object
-
- org.apache.tapestry5.ioc.internal.util.LocationImpl
-
- All Implemented Interfaces:
Location
public final class LocationImpl extends java.lang.Object implements Location
Implementation class forLocation.
-
-
Constructor Summary
Constructors Constructor Description LocationImpl(Resource resource)LocationImpl(Resource resource, int line)LocationImpl(Resource resource, int line, int column)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)intgetColumn()The column number within the line if known, or -1 otherwise.intgetLine()The line number within the resource, if known, or -1 otherwise.ResourcegetResource()The resource from which the object tagged with a location was derived.inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
LocationImpl
public LocationImpl(Resource resource)
-
LocationImpl
public LocationImpl(Resource resource, int line)
-
LocationImpl
public LocationImpl(Resource resource, int line, int column)
-
-
Method Detail
-
getResource
public Resource getResource()
Description copied from interface:LocationThe resource from which the object tagged with a location was derived.- Specified by:
getResourcein interfaceLocation
-
getLine
public int getLine()
Description copied from interface:LocationThe line number within the resource, if known, or -1 otherwise.
-
getColumn
public int getColumn()
Description copied from interface:LocationThe column number within the line if known, or -1 otherwise.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-