Class StringLocation
- java.lang.Object
-
- org.apache.tapestry5.commons.internal.services.StringLocation
-
- All Implemented Interfaces:
Location
public final class StringLocation extends java.lang.Object implements Location
Implementation ofLocationused when the underlying resource isn't really known.
-
-
Constructor Summary
Constructors Constructor Description StringLocation(java.lang.String description, int line)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColumn()Returns 0.intgetLine()The line number within the resource, if known, or -1 otherwise.ResourcegetResource()Returns null; we don't know where the file really is (it's probably a class on the class path).java.lang.StringtoString()
-
-
-
Constructor Detail
-
StringLocation
public StringLocation(java.lang.String description, int line)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getLine
public int getLine()
Description copied from interface:LocationThe line number within the resource, if known, or -1 otherwise.
-
getResource
public Resource getResource()
Returns null; we don't know where the file really is (it's probably a class on the class path).- Specified by:
getResourcein interfaceLocation
-
-