org.jtheque.metrics.services.impl.utils.count
Class MethodPointer

java.lang.Object
  extended by org.jtheque.metrics.services.impl.utils.count.MethodPointer
All Implemented Interfaces:
Pointer

public final class MethodPointer
extends Object
implements Pointer

A pointer on a method.

Author:
Baptiste Wicht

Constructor Summary
MethodPointer(Method method, int startLine, int stopLine)
          Construct a new MethodPointer.
 
Method Summary
 int getStartLine()
          Return the start line of the pointer.
 int getStopLine()
          Return the stop line of the pointer.
 void setCommentLines(int lines)
          Set the final number of comment lines for this pointer.
 void setLinesOfCode(int lines)
          Set the final number of lines of code for this pointer.
 void setPhysicalLines(int lines)
          Set the final number of physical lines for this pointer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodPointer

public MethodPointer(Method method,
                     int startLine,
                     int stopLine)
Construct a new MethodPointer.

Parameters:
method - The method.
startLine - The start line of the constructor.
stopLine - The stop line of the constructor.
Method Detail

getStartLine

public int getStartLine()
Description copied from interface: Pointer
Return the start line of the pointer.

Specified by:
getStartLine in interface Pointer
Returns:
The start line of the pointer.

getStopLine

public int getStopLine()
Description copied from interface: Pointer
Return the stop line of the pointer.

Specified by:
getStopLine in interface Pointer
Returns:
The stop line of the pointer.

setLinesOfCode

public void setLinesOfCode(int lines)
Description copied from interface: Pointer
Set the final number of lines of code for this pointer.

Specified by:
setLinesOfCode in interface Pointer
Parameters:
lines - The number of lines of code.

setPhysicalLines

public void setPhysicalLines(int lines)
Description copied from interface: Pointer
Set the final number of physical lines for this pointer.

Specified by:
setPhysicalLines in interface Pointer
Parameters:
lines - The number of physical lines.

setCommentLines

public void setCommentLines(int lines)
Description copied from interface: Pointer
Set the final number of comment lines for this pointer.

Specified by:
setCommentLines in interface Pointer
Parameters:
lines - The number of comment lines.


Copyright © 2010 JTheque. All Rights Reserved.