org.jtheque.metrics.utils.elements
Class Method

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

public final class Method
extends Object

Represent a method.

Author:
Baptiste Wicht.

Constructor Summary
Method(String name)
          Construct a new Method.
 
Method Summary
 int getCodeLines()
          Return the number of lines of code of the method.
 int getCommentLines()
          Return the number of comment lines of the method.
 String getName()
          Return the name of the method.
 int getPhysicalLines()
          Return the number of physical lines of the method.
 void setCodeLines(int codeLines)
          Set the number of lines of code of the method.
 void setCommentLines(int commentLines)
          Set the number of comment lines of the method.
 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

Method

public Method(String name)
Construct a new Method.

Parameters:
name - The name of Method.
Method Detail

getCodeLines

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

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

setCodeLines

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

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

getCommentLines

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

Returns:
The number of comment lines of the method.

setCommentLines

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

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

getPhysicalLines

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

Returns:
The number of physical lines of the method.

setPhysicalLines

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

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

getName

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

Returns:
The name of the method.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010 JTheque. All Rights Reserved.