org.jtheque.metrics.utils.elements
Class Constructor

java.lang.Object
  extended by org.jtheque.metrics.utils.elements.Constructor

public final class Constructor
extends Object

Represent a constructor.

Author:
Baptiste Wicht.

Constructor Summary
Constructor(String name)
          Construct a new Constructor.
 
Method Summary
 int getCodeLines()
          Return the number of lines of code of the constructor.
 int getCommentLines()
          Return the number of comment lines of the constructor.
 String getName()
          Return the name of the constructor.
 int getPhysicalLines()
          Return the number of physical lines of the constructor.
 void setCodeLines(int codeLines)
          Set the number of lines of code of the constructor.
 void setCommentLines(int commentLines)
          Set the number of comment lines of the constructor.
 void setPhysicalLines(int physicalLines)
          Set the number of physical lines of the constructor.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Constructor

public Constructor(String name)
Construct a new Constructor.

Parameters:
name - The name of Constructor.
Method Detail

getCodeLines

public int getCodeLines()
Return the number of lines of code of the constructor.

Returns:
The number of lines of code of the constructor.

setCodeLines

public void setCodeLines(int codeLines)
Set the number of lines of code of the constructor.

Parameters:
codeLines - The number of lines of code of the constructor.

getCommentLines

public int getCommentLines()
Return the number of comment lines of the constructor.

Returns:
The number of comment lines of the constructor.

setCommentLines

public void setCommentLines(int commentLines)
Set the number of comment lines of the constructor.

Parameters:
commentLines - The number of comment lines of the constructor.

getPhysicalLines

public int getPhysicalLines()
Return the number of physical lines of the constructor.

Returns:
The number of physical lines of the constructor.

setPhysicalLines

public void setPhysicalLines(int physicalLines)
Set the number of physical lines of the constructor.

Parameters:
physicalLines - The number of physical lines of the constructor.

getName

public String getName()
Return the name of the constructor.

Returns:
The name of the constructor.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010 JTheque. All Rights Reserved.