junit.quilt.framework
Class StatementSegmentImpl

java.lang.Object
  |
  +--junit.quilt.framework.CoverageSegmentImpl
        |
        +--junit.quilt.framework.StatementSegmentImpl
All Implemented Interfaces:
CoverageSegment, StatementSegment
Direct Known Subclasses:
StatementSegment

public class StatementSegmentImpl
extends CoverageSegmentImpl
implements StatementSegment


Constructor Summary
StatementSegmentImpl(java.lang.String fileName, int startLine, int endLine)
           
 
Method Summary
 java.lang.String getCustomXML()
           
 java.lang.String getDescription()
          getDescription This method returns a description of the segment which is defined by this class.
 java.lang.String getFileName()
          getFileName This returns the filename where these statements are located.
 int getLineEnd()
          getLineEnd This returns the last line of this segment.
 int getLineStart()
          getLineStart This returns the first line of this segment.
 
Methods inherited from class junit.quilt.framework.CoverageSegmentImpl
addVisits, getAdvice, getNumVisits, getTimes, reset, toXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface junit.quilt.framework.CoverageSegment
getAdvice, getNumVisits, getTimes, toXML
 

Constructor Detail

StatementSegmentImpl

public StatementSegmentImpl(java.lang.String fileName,
                            int startLine,
                            int endLine)
Method Detail

getFileName

public java.lang.String getFileName()
Description copied from interface: StatementSegment
getFileName This returns the filename where these statements are located.
Specified by:
getFileName in interface StatementSegment

getLineStart

public int getLineStart()
Description copied from interface: StatementSegment
getLineStart This returns the first line of this segment.
Specified by:
getLineStart in interface StatementSegment

getLineEnd

public int getLineEnd()
Description copied from interface: StatementSegment
getLineEnd This returns the last line of this segment.
Specified by:
getLineEnd in interface StatementSegment

getCustomXML

public java.lang.String getCustomXML()
Overrides:
getCustomXML in class CoverageSegmentImpl

getDescription

public java.lang.String getDescription()
Description copied from interface: CoverageSegment
getDescription This method returns a description of the segment which is defined by this class. This should be similar to: Lines 14 - 20 of FooBar.java
Specified by:
getDescription in interface CoverageSegment
Overrides:
getDescription in class CoverageSegmentImpl


Copyright © 2001-2002 David Dixon-Peugh. All Rights Reserved.