jfun.yan.xml
Class Location

java.lang.Object
  extended by jfun.yan.xml.Location
All Implemented Interfaces:
java.io.Serializable

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

This class represents a location within the config file.

Author:
Ben Yu
See Also:
Serialized Form

Constructor Summary
Location(java.lang.String module, int line, int col)
          To create a Location object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int getColumnNo()
          Get the 1-based column number.
 int getLineNo()
          Get the 1-based line number.
 java.lang.String getModule()
          Get the module name.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Location

public Location(java.lang.String module,
                int line,
                int col)
To create a Location object.

Parameters:
module - the module name.
line - the line number.
col - the column number.
Method Detail

getColumnNo

public int getColumnNo()
Get the 1-based column number.


getLineNo

public int getLineNo()
Get the 1-based line number.


getModule

public java.lang.String getModule()
Get the module name.


equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object