org.pz.platypus
Class Source

java.lang.Object
  extended by org.pz.platypus.Source
All Implemented Interfaces:
java.lang.Cloneable

public class Source
extends java.lang.Object
implements java.lang.Cloneable

Object that contains the file number and line number of the referenced input item

Author:
alb

Field Summary
private  int fileNumber
          the file number.
private  int lineNumber
          the line numbre within the file pointed to by fileNumber
 
Constructor Summary
Source()
           
Source(int lineNum)
           
Source(int fileNum, int lineNum)
           
 
Method Summary
 Source clone()
           
 boolean equals(java.lang.Object o)
           
 int getFileNumber()
           
 int getLineNumber()
           
 int hashCode()
           
 void setFileNumber(int newFileNumber)
           
 void setLineNumber(int newLineNumber)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileNumber

private int fileNumber
the file number. FileList maps the number to a specific file name


lineNumber

private int lineNumber
the line numbre within the file pointed to by fileNumber

Constructor Detail

Source

public Source()

Source

public Source(int lineNum)

Source

public Source(int fileNum,
              int lineNum)
Method Detail

equals

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

clone

public Source clone()
             throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

hashCode

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

getFileNumber

public int getFileNumber()

setFileNumber

public void setFileNumber(int newFileNumber)

getLineNumber

public int getLineNumber()

setLineNumber

public void setLineNumber(int newLineNumber)


Copyright © 2008-10 Pacific Data Works LLC