sofya.ed.structural
Interface BlockInstrumentationStrategy

All Known Implementing Classes:
BlockCoverageProcessingStrategy, BlockSequenceProcessingStrategy, JUnitBlockCoverageProcessingStrategy, JUnitBlockSequenceProcessingStrategy

public interface BlockInstrumentationStrategy

Specifies that a component uses or depends on a basic block instrumentation strategy. Defines methods to specify which types of basic blocks are selected for instrumentation or observation.

Version:
03/16/2006
Author:
Alex Kinneer

Method Summary
 boolean areCallBlocksActive()
          Reports whether call blocks are selected.
 boolean areCodeBlocksActive()
          Reports whether general basic blocks are selected; general basic blocks are any basic blocks corresponding to actual program code other than method call blocks.
 boolean areEntryBlocksActive()
          Reports whether entry blocks are selected.
 boolean areExitBlocksActive()
          Reports whether exit blocks are selected.
 int getTypeFlags()
          Gets the bitmask corresponding to the types of basic blocks currently selected.
 void setCallBlocksActive(boolean enable)
          Sets whether call blocks are selected.
 void setCodeBlocksActive(boolean enable)
          Sets whether general basic blocks are selected; general basic blocks are any basic blocks corresponding to actual program code other than method call blocks.
 void setEntryBlocksActive(boolean enable)
          Sets whether entry blocks are selected.
 void setExitBlocksActive(boolean enable)
          Sets whether exit blocks are selected.
 

Method Detail

areCodeBlocksActive

boolean areCodeBlocksActive()
Reports whether general basic blocks are selected; general basic blocks are any basic blocks corresponding to actual program code other than method call blocks.

Returns:
true if general basic blocks are selected, false otherwise.

setCodeBlocksActive

void setCodeBlocksActive(boolean enable)
Sets whether general basic blocks are selected; general basic blocks are any basic blocks corresponding to actual program code other than method call blocks.

Parameters:
enable - true to select general basic blocks, false to ignore.

areEntryBlocksActive

boolean areEntryBlocksActive()
Reports whether entry blocks are selected.

Returns:
true if entry blocks are selected, false otherwise.

setEntryBlocksActive

void setEntryBlocksActive(boolean enable)
Sets whether entry blocks are selected.

Parameters:
enable - true to select entry blocks, false to ignore.

areExitBlocksActive

boolean areExitBlocksActive()
Reports whether exit blocks are selected.

Returns:
true if exit blocks are selected, false otherwise.

setExitBlocksActive

void setExitBlocksActive(boolean enable)
Sets whether exit blocks are selected.

Parameters:
enable - true to select exit blocks, false to ignore.

areCallBlocksActive

boolean areCallBlocksActive()
Reports whether call blocks are selected.

Returns:
true if call blocks are selected, false otherwise.

setCallBlocksActive

void setCallBlocksActive(boolean enable)
Sets whether call blocks are selected.

Parameters:
enable - true to select call blocks, false to ignore.

getTypeFlags

int getTypeFlags()
Gets the bitmask corresponding to the types of basic blocks currently selected.

Used for communicating configuration information to certain other components. To be phased out at a future date.

Returns:
The bitmask indicating which basic block types have been selected in this configuration.