de.uka.ipd.sdq.ByCounter.instrumentation
Class InstrumentationState
java.lang.Object
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)
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InstrumentationState
public InstrumentationState()
- Initialises all fields.
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.