|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.uka.ipd.sdq.ByCounter.parsing.InstructionBlockDescriptor
public class InstructionBlockDescriptor
Descriptor for a instruction blocks in Java bytecode.
Constructor Summary | |
---|---|
InstructionBlockDescriptor()
|
Method Summary | |
---|---|
void |
add(InstructionBlockDescriptor instructionBlockDescriptor)
Adds instruction counts of the given block to this block. |
static void |
addInstruction(InstructionBlockDescriptor currentIBDesc,
org.objectweb.asm.tree.AbstractInsnNode insn)
Adds an instruction to the InstructionBlockDescriptor . |
int |
getBlockIndex()
The block index is an identifier for the local variable in bytecode that is associated to this instruction block. |
java.util.Map<java.lang.String,java.lang.Integer> |
getMethodCallCounts()
Method call counts is a map containing all occurring method calls as keys and the number of occurrences as values. |
int[] |
getOpcodeCounts()
Opcode counts is an array where at the index of each opcode the number of occurrences of that opcode is the value. |
boolean |
isEmpty()
|
void |
setBlockIndex(int blockIndex)
Theblock index is an identifier for the local variable in bytecode that is associated to this instruction block. |
static InstructionBlockDescriptor |
subtract(InstructionBlockDescriptor bb1,
InstructionBlockDescriptor bb2)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InstructionBlockDescriptor()
Method Detail |
---|
public void setBlockIndex(int blockIndex)
blockIndex
- the blockIndex to setpublic int getBlockIndex()
public int[] getOpcodeCounts()
public java.util.Map<java.lang.String,java.lang.Integer> getMethodCallCounts()
public java.lang.String toString()
toString
in class java.lang.Object
public static void addInstruction(InstructionBlockDescriptor currentIBDesc, org.objectweb.asm.tree.AbstractInsnNode insn)
InstructionBlockDescriptor
.
currentIBDesc
- The InstructionBlockDescriptor
to add to.insn
- The instruction to add.public void add(InstructionBlockDescriptor instructionBlockDescriptor)
instructionBlockDescriptor
- public static InstructionBlockDescriptor subtract(InstructionBlockDescriptor bb1, InstructionBlockDescriptor bb2)
bb1
- An InstructionBlockDescriptor
.bb2
- An InstructionBlockDescriptor
.
InstructionBlockDescriptor
containing the count
difference of bb1 and bb2, i.e. bb1-bb2.public boolean isEmpty()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |