jfun.jaskell.ast
Class Location

java.lang.Object
  extended by jfun.jaskell.ast.Location
All Implemented Interfaces:
java.io.Serializable

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

Represents a line in a module.

Author:
DBBXY1
See Also:
Serialized Form

Constructor Summary
Location(java.lang.Object module_id, java.lang.String module, int lno)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int getLineNumber()
          get the line number.
 java.lang.Object getModuleId()
           
 java.lang.String getModuleName()
          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.Object module_id,
                java.lang.String module,
                int lno)
Parameters:
module - the module name.
lno - the line number.
Method Detail

getLineNumber

public int getLineNumber()
get the line number.


getModuleName

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


getModuleId

public java.lang.Object getModuleId()

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