|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.cobertura.metrics.api.event.AbstractSourceLocationListener
public abstract class AbstractSourceLocationListener
Abstract implementation of the SourceLocationListener specification, used to provide a base for subclassing.
| Constructor Summary | |
|---|---|
AbstractSourceLocationListener()
|
|
| Method Summary | |
|---|---|
void |
addExecutionStep(SourceLocation location)
Adds 1 to the recorded execution steps ("hits"/"touches") to the supplied SourceLocation. |
void |
addExecutionSteps(SourceLocation location,
int numSteps)
Adds a given number of execution steps ("hits"/"touches") to the supplied SourceLocation. |
protected abstract void |
addInternalExecutionSteps(SourceLocation nonNullLocation,
int positiveNumSteps)
Adds a given number of execution steps ("hits"/"touches") to the supplied SourceLocation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractSourceLocationListener()
| Method Detail |
|---|
public void addExecutionSteps(SourceLocation location,
int numSteps)
addExecutionSteps in interface SourceLocationListenerlocation - The SourceLocation where 1 execution step should be added.
Cannot be null.numSteps - The number of execution steps to add to the supplied SourceLocation.
Cannot be less than 1.
protected abstract void addInternalExecutionSteps(SourceLocation nonNullLocation,
int positiveNumSteps)
nonNullLocation - The SourceLocation where 1 execution step should be added.
Guaranteed never to be null.positiveNumSteps - The number of execution steps to add to the supplied SourceLocation.
Guaranteed not to be negative.public final void addExecutionStep(SourceLocation location)
addExecutionStep in interface SourceLocationListenerlocation - The SourceLocation where 1 execution step should be added. Cannot be null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||