public class BasicBlock extends Object implements Serializable, Iterable<BytecodeInstruction>
cfg.ActualControlFlowGraph,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected ClassLoader |
classLoader |
protected String |
className |
protected boolean |
isAuxiliaryBlock |
protected String |
methodName |
| Modifier | Constructor and Description |
|---|---|
|
BasicBlock(ClassLoader classLoader,
String className,
String methodName,
List<BytecodeInstruction> blockNodes)
Constructor for BasicBlock.
|
protected |
BasicBlock(String className,
String methodName)
Used by Entry- and ExitBlocks
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkSanity()
checkSanity
|
boolean |
constainsInstruction(org.objectweb.asm.tree.AbstractInsnNode insnNode)
constainsInstruction
|
boolean |
containsInstruction(BytecodeInstruction instruction)
containsInstruction
|
boolean |
equals(Object obj) |
String |
explain()
explain
|
ControlDependenceGraph |
getCDG()
Returns the ControlDependenceGraph of this instructions method
Convenience method.
|
String |
getClassName()
Getter for the field
className. |
Set<ControlDependency> |
getControlDependencies()
Returns a cfg.Branch object for each branch this instruction is control
dependent on as determined by the ControlDependenceGraph.
|
Set<Integer> |
getControlDependentBranchIds()
Returns all branchIds of Branches this instruction is directly control
dependent on as determined by the ControlDependenceGraph for this
instruction's method.
|
BytecodeInstruction |
getFirstInstruction()
getFirstInstruction
|
int |
getFirstLine()
getFirstLine
|
BytecodeInstruction |
getLastInstruction()
getLastInstruction
|
int |
getLastLine()
getLastLine
|
String |
getMethodName()
Getter for the field
methodName. |
String |
getName()
getName
|
boolean |
hasControlDependenciesSet()
hasControlDependenciesSet
|
int |
hashCode() |
boolean |
isEntryBlock()
isEntryBlock
|
boolean |
isExitBlock()
isExitBlock
|
Iterator<BytecodeInstruction> |
iterator() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorprotected ClassLoader classLoader
protected String className
protected String methodName
protected boolean isAuxiliaryBlock
public BasicBlock(ClassLoader classLoader, String className, String methodName, List<BytecodeInstruction> blockNodes)
Constructor for BasicBlock.
public ControlDependenceGraph getCDG()
ControlDependenceGraph object.public Set<Integer> getControlDependentBranchIds()
Set object.public Set<ControlDependency> getControlDependencies()
Set object.public boolean hasControlDependenciesSet()
hasControlDependenciesSet
public boolean containsInstruction(BytecodeInstruction instruction)
containsInstruction
instruction - a BytecodeInstruction object.public boolean constainsInstruction(org.objectweb.asm.tree.AbstractInsnNode insnNode)
constainsInstruction
insnNode - a AbstractInsnNode object.public BytecodeInstruction getFirstInstruction()
getFirstInstruction
BytecodeInstruction object.public BytecodeInstruction getLastInstruction()
getLastInstruction
BytecodeInstruction object.public int getFirstLine()
getFirstLine
public int getLastLine()
getLastLine
public String getMethodName()
Getter for the field methodName.
String object.public void checkSanity()
checkSanity
public boolean isEntryBlock()
isEntryBlock
public boolean isExitBlock()
isExitBlock
public Iterator<BytecodeInstruction> iterator()
iterator in interface Iterable<BytecodeInstruction>Copyright © 2010–2017 EvoSuite. All rights reserved.