janino.net

org.codehaus.commons.compiler
Class Location

  extended by org.codehaus.commons.compiler.Location
All Implemented Interfaces:

public class Location
extends
implements

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
          Representation of an unspecified location.
 
Constructor Summary
Location( optionalFileName, short lineNumber, short columnNumber)
           
 
Method Summary
 short getColumnNumber()
           
  getFileName()
           
 short getLineNumber()
           
  toString()
          Converts this Location into an english text, like 'File Main.java, Line 23, Column 79'.
 
Methods inherited from class java.lang.
, , , , , , , , ,
 

Field Detail

NOWHERE

public static final Location NOWHERE
Representation of an unspecified location.

Constructor Detail

Location

public Location( 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  getFileName()
Returns:
The "file name" associated with this location, or null

getLineNumber

public short getLineNumber()
Returns:
The line number associated with this location, or -1

getColumnNumber

public short getColumnNumber()
Returns:
The column number associated with this location, or -1

toString

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

Overrides:
in class

janino.net