de.uka.ipd.sdq.ByCounter.instrumentation
Class InstrumentationState

java.lang.Object
  extended by de.uka.ipd.sdq.ByCounter.instrumentation.InstrumentationState

public class InstrumentationState
extends java.lang.Object

Author:
Martin Krogmann This class holds various intermediate results of instrumentation stages and can be passed from one stage to the next. Every field of this class is computed by ByCounter, i.e. not user specified.
  • getBasicBlockSerialisation() only applies if InstrumentationParameters.getUseBasicBlocks() == true
  • getRangeBlockSerialisation() only applies if InstrumentationParameters.getUseBasicBlocks() == true and MethodDescriptor.setCodeAreasToInstrument(LineNumberRange[]) has been called with non-empty line number ranges (InstrumentationParameters.hasMethodsWithCodeAreas() == true)

  • Constructor Summary
    InstrumentationState()
              Initialises all fields.
     
    Method Summary
     org.objectweb.asm.Label[] getBasicBlockLabels()
               
     BasicBlockSerialisation getBasicBlockSerialisation()
              This is used in the instrumentation process to save basic block definitions.
     java.util.List<MethodDescriptor> getMethodsToInstrumentCalculated()
               
     java.util.Map<org.objectweb.asm.Label,java.lang.Integer> getRangeBlockContainsLabels()
               
     BasicBlockSerialisation getRangeBlockSerialisation()
              This is used in the instrumentation process to save range block definitions.
     java.util.List<MethodDescriptor> getSuccessFullyInstrumentedMethods()
               
     void setBasicBlockLabels(org.objectweb.asm.Label[] basicBlockLabels)
               
     void setMethodsToInstrumentCalculated(java.util.List<MethodDescriptor> methodsToInstrumentCalculated)
               
     void setRangeBlockContainsLabels(java.util.Map<org.objectweb.asm.Label,java.lang.Integer> rangeBlockContainsLabels)
               
     void setSuccessFullyInstrumentedMethods(java.util.List<MethodDescriptor> successFullyInstrumentedMethods)
               
     
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    InstrumentationState

    public InstrumentationState()
    Initialises all fields.

    Method Detail

    getBasicBlockSerialisation

    public BasicBlockSerialisation getBasicBlockSerialisation()
    This is used in the instrumentation process to save basic block definitions.

    Returns:
    the basicBlockSerialisation

    getRangeBlockSerialisation

    public BasicBlockSerialisation getRangeBlockSerialisation()
    This is used in the instrumentation process to save range block definitions.

    Returns:
    the rangeBlockSerialisation

    setMethodsToInstrumentCalculated

    public void setMethodsToInstrumentCalculated(java.util.List<MethodDescriptor> methodsToInstrumentCalculated)
    Parameters:
    methodsToInstrumentCalculated - the methodsToInstrumentCalculated to set

    getMethodsToInstrumentCalculated

    public java.util.List<MethodDescriptor> getMethodsToInstrumentCalculated()
    Returns:
    the methodsToInstrumentCalculated

    getSuccessFullyInstrumentedMethods

    public java.util.List<MethodDescriptor> getSuccessFullyInstrumentedMethods()
    Returns:
    the successFullyInstrumentedMethods

    setSuccessFullyInstrumentedMethods

    public void setSuccessFullyInstrumentedMethods(java.util.List<MethodDescriptor> successFullyInstrumentedMethods)
    Parameters:
    successFullyInstrumentedMethods - the successFullyInstrumentedMethods to set

    getBasicBlockLabels

    public org.objectweb.asm.Label[] getBasicBlockLabels()
    Returns:
    The labels that start a basic block.

    setBasicBlockLabels

    public void setBasicBlockLabels(org.objectweb.asm.Label[] basicBlockLabels)
    Parameters:
    basicBlockLabels - The labels that start a basic block.

    getRangeBlockContainsLabels

    public java.util.Map<org.objectweb.asm.Label,java.lang.Integer> getRangeBlockContainsLabels()
    Returns:
    The labels that are part of a range block.

    setRangeBlockContainsLabels

    public void setRangeBlockContainsLabels(java.util.Map<org.objectweb.asm.Label,java.lang.Integer> rangeBlockContainsLabels)
    Parameters:
    rangeBlockContainsLabels - The labels that are part of a range block.