org.jacoco.core.runtime
Class AbstractRuntime

java.lang.Object
  extended by org.jacoco.core.runtime.AbstractRuntime
All Implemented Interfaces:
IExecutionDataAccessorGenerator, IRuntime
Direct Known Subclasses:
LoggerRuntime, ModifiedSystemClassRuntime, SystemPropertiesRuntime

public abstract class AbstractRuntime
extends Object
implements IRuntime

Base IRuntime implementation.

Version:
$Revision: $
Author:
Marc R. Hoffmann

Field Summary
protected  org.jacoco.core.runtime.ExecutionDataAccess access
          access for this runtime instance
protected  ExecutionDataStore store
          store for execution data
 
Constructor Summary
protected AbstractRuntime()
          Creates a new runtime.
 
Method Summary
 void collect(IExecutionDataVisitor visitor, boolean reset)
          Collects the current execution data and writes it to the given IExecutionDataVisitor object.
 void reset()
          Resets all coverage information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jacoco.core.runtime.IRuntime
shutdown, startup
 
Methods inherited from interface org.jacoco.core.runtime.IExecutionDataAccessorGenerator
generateDataAccessor
 

Field Detail

store

protected final ExecutionDataStore store
store for execution data


access

protected final org.jacoco.core.runtime.ExecutionDataAccess access
access for this runtime instance

Constructor Detail

AbstractRuntime

protected AbstractRuntime()
Creates a new runtime.

Method Detail

collect

public final void collect(IExecutionDataVisitor visitor,
                          boolean reset)
Description copied from interface: IRuntime
Collects the current execution data and writes it to the given IExecutionDataVisitor object. This method must only be called between IRuntime.startup() and IRuntime.shutdown().

Specified by:
collect in interface IRuntime
Parameters:
visitor - handler to write coverage data to
reset - if true the current coverage information is also cleared

reset

public final void reset()
Description copied from interface: IRuntime
Resets all coverage information. This method must only be called between IRuntime.startup() and IRuntime.shutdown().

Specified by:
reset in interface IRuntime