info.simongibbs.scoof
Class Specifier

java.lang.Object
  extended byinfo.simongibbs.scoof.Specifier
All Implemented Interfaces:
java.lang.Comparable
Direct Known Subclasses:
Hit, Passage

public class Specifier
extends java.lang.Object
implements java.lang.Comparable

Describes the location and size of an interesting bit of code.

Version:
$Revision: 1.2 $
Author:
simon

Constructor Summary
Specifier()
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 java.lang.String getGenerator()
          Obtain a String giving the qualified class name of the generating Task object.
 int getLine()
          Returns the line number.
 int getOriginalLength()
          The number of LINES used to represent the code in the source file.
 java.io.File getSource()
          Returns the file.
 void setGenerator(java.lang.String string)
          Supply a String giving the qualified class name of the generating Task object.
 void setLine(int line)
          Sets the line number.
 void setOriginalLength(int i)
          The number of LINES used to represent the code in the source file.
 void setSource(java.io.File file)
          Sets the file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Specifier

public Specifier()
Method Detail

getSource

public java.io.File getSource()
Returns the file.

Returns:
File

setSource

public void setSource(java.io.File file)
Sets the file.

Parameters:
file - The file to set

getLine

public int getLine()
Returns the line number.

Returns:
int the line number of the hit

setLine

public void setLine(int line)
Sets the line number.

Parameters:
line - a line number

getOriginalLength

public int getOriginalLength()
The number of LINES used to represent the code in the source file. Facilitates mapping back to the source in analysis tools.

Returns:
int number of lines

setOriginalLength

public void setOriginalLength(int i)
The number of LINES used to represent the code in the source file. Facilitates mapping back to the source in analysis tools.

Parameters:
i -

getGenerator

public java.lang.String getGenerator()
Obtain a String giving the qualified class name of the generating Task object.

Returns:
String class name

setGenerator

public void setGenerator(java.lang.String string)
Supply a String giving the qualified class name of the generating Task object.

Parameters:
string -

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable