hudson.plugins.dry.parser.simian
Class Block

java.lang.Object
  extended by hudson.plugins.dry.parser.simian.Block

public class Block
extends Object

Java Bean class for a duplicated block of a Simian duplication warning.

Author:
Ulli Hafner

Constructor Summary
Block()
           
 
Method Summary
 int getEndLineNumber()
          Returns the line number of the end of the duplication.
 String getSourceFile()
          Returns the file name.
 int getStartLineNumber()
          Returns the line number of the start of the duplication.
 void setEndLineNumber(int endLineNumber)
          Sets the line number of the end of the duplication to the specified value.
 void setSourceFile(String sourceFile)
          Sets the file name to the specified value.
 void setStartLineNumber(int startLineNumber)
          Sets the line number of the start of the duplication to the specified value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Block

public Block()
Method Detail

getSourceFile

public String getSourceFile()
Returns the file name.

Returns:
the file name

setSourceFile

public void setSourceFile(String sourceFile)
Sets the file name to the specified value.

Parameters:
sourceFile - the value to set

getStartLineNumber

public int getStartLineNumber()
Returns the line number of the start of the duplication.

Returns:
the line number of the start of the duplication.

setStartLineNumber

public void setStartLineNumber(int startLineNumber)
Sets the line number of the start of the duplication to the specified value.

Parameters:
startLineNumber - the value to set

getEndLineNumber

public int getEndLineNumber()
Returns the line number of the end of the duplication.

Returns:
the line number of the end of the duplication.

setEndLineNumber

public void setEndLineNumber(int endLineNumber)
Sets the line number of the end of the duplication to the specified value.

Parameters:
endLineNumber - the value to set


Copyright © 2004-2013 Hudson. All Rights Reserved.