Class Location


  • public class Location
    extends java.lang.Object
    A class for storing location information
    Version:
    $Revision: 3633 $ $Date: 2003-03-01 08:38:44 +0100 (Sat, 01 Mar 2003) $
    Author:
    Keith Visco
    • Constructor Summary

      Constructors 
      Constructor Description
      Location​(int line, int column)
      Creates a new Location with the given line and column numbers.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getColumnNumber()
      Returns the column number
      int getLineNumber()
      Returns the line number
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Location

        public Location​(int line,
                        int column)
        Creates a new Location with the given line and column numbers.
        Parameters:
        line - the line number
        column - the column number
    • Method Detail

      • getColumnNumber

        public int getColumnNumber()
        Returns the column number
        Returns:
        the column number
      • getLineNumber

        public int getLineNumber()
        Returns the line number
        Returns:
        the line number