org.codehaus.commons.compiler
Class Location

java.lang.Object
  extended by org.codehaus.commons.compiler.Location
All Implemented Interfaces:
java.io.Serializable

public class Location
extends java.lang.Object
implements java.io.Serializable

Represents the location of a character in a document, as defined by an optional file name, a line number and a column number.

See Also:
Serialized Form

Field Summary
static Location NOWHERE
           
 
Constructor Summary
Location(java.lang.String optionalFileName, short lineNumber, short columnNumber)
           
 
Method Summary
 short getColumnNumber()
           
 java.lang.String getFileName()
           
 short getLineNumber()
           
 java.lang.String toString()
          Converts this Location into an english text, like
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NOWHERE

public static final Location NOWHERE
Constructor Detail

Location

public Location(java.lang.String optionalFileName,
                short lineNumber,
                short columnNumber)
Parameters:
optionalFileName - A human-readable indication where the document related to this Location can be found
Method Detail

getFileName

public java.lang.String getFileName()

getLineNumber

public short getLineNumber()

getColumnNumber

public short getColumnNumber()

toString

public java.lang.String toString()
Converts this Location into an english text, like
 File Main.java, Line 23, Column 79

Overrides:
toString in class java.lang.Object


Copyright © 2001-2012. All Rights Reserved.