org.apache.tools.ant
Class Location
java.lang.Object
|
+--org.apache.tools.ant.Location
- public class Location
- extends java.lang.Object
Stores the file name and line number in a file.
Constructor Summary |
Location(java.lang.String fileName)
Creates a location consisting of a file name but no line number. |
Location(java.lang.String fileName,
int lineNumber,
int columnNumber)
Creates a location consisting of a file name and line number. |
Method Summary |
java.lang.String |
toString()
Returns the file name, line number and a trailing space. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UNKNOWN_LOCATION
public static final Location UNKNOWN_LOCATION
Location
public Location(java.lang.String fileName)
- Creates a location consisting of a file name but no line number.
Location
public Location(java.lang.String fileName,
int lineNumber,
int columnNumber)
- Creates a location consisting of a file name and line number.
toString
public java.lang.String toString()
- Returns the file name, line number and a trailing space. An error
message can be appended easily. For unknown locations, returns
an empty string.
- Overrides:
toString
in class java.lang.Object
Copyright ? 2000 Apache Software Foundation. All Rights Reserved.