Web Site

org.codehaus.janino
Class Location

java.lang.Object
  extended by org.codehaus.janino.Location

public class Location
extends java.lang.Object

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


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
 

Constructor Detail

Location

public Location(java.lang.String optionalFileName,
                short lineNumber,
                short columnNumber)
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

Web Site