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.


Field Summary
static Location UNKNOWN_LOCATION
           
 
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
 

Field Detail

UNKNOWN_LOCATION

public static final Location UNKNOWN_LOCATION
Constructor Detail

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.
Method Detail

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


Includes only those classes commonly used by task writers. The Ant 1.4.1 distribution includes complete Javadoc for all classes included in Ant, though in most cases these are not intended as APIs.