Class LocationImpl
- java.lang.Object
-
- org.apache.tapestry5.ioc.internal.util.LocationImpl
-
- All Implemented Interfaces:
Location
public final class LocationImpl extends 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 boolean
equals(Object obj)
int
getColumn()
The column number within the line if known, or -1 otherwise.int
getLine()
The line number within the resource, if known, or -1 otherwise.Resource
getResource()
The resource from which the object tagged with a location was derived.int
hashCode()
String
toString()
-
-
-
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:Location
The resource from which the object tagged with a location was derived.- Specified by:
getResource
in interfaceLocation
-
getLine
public int getLine()
Description copied from interface:Location
The line number within the resource, if known, or -1 otherwise.
-
getColumn
public int getColumn()
Description copied from interface:Location
The column number within the line if known, or -1 otherwise.
-
-