org.pz.platypus
Class Source
java.lang.Object
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 |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
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
Source
public Source()
Source
public Source(int lineNum)
Source
public Source(int fileNum,
int lineNum)
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