public class ActualControlFlowGraph extends ControlFlowGraph<BasicBlock>
access, className, methodNameedgeClass, graph, graphId| Modifier | Constructor and Description |
|---|---|
protected |
ActualControlFlowGraph(ActualControlFlowGraph toRevert)
Constructor for ActualControlFlowGraph.
|
|
ActualControlFlowGraph(RawControlFlowGraph rawGraph)
Constructor for ActualControlFlowGraph.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addBlock(BasicBlock nodeBlock)
addBlock
|
protected void |
addRawEdge(BasicBlock src,
BasicBlock target,
ControlFlowEdge origEdge)
addRawEdge
|
protected void |
addRawEdge(BasicBlock src,
BytecodeInstruction target,
ControlFlowEdge origEdge)
addRawEdge
|
protected void |
addRawEdge(BytecodeInstruction src,
BasicBlock target,
ControlFlowEdge origEdge)
addRawEdge
|
boolean |
belongsToMethod(BytecodeInstruction instruction)
belongsToMethod
|
void |
checkSanity()
checkSanity
|
ActualControlFlowGraph |
computeReverseCFG()
computeReverseCFG
|
boolean |
containsInstruction(BytecodeInstruction v)
Determines, whether a given instruction is contained in this CFG
|
BasicBlock |
getBlockOf(BytecodeInstruction instruction)
If the given instruction is known to this graph, the BasicBlock holding
that instruction is returned.
|
Set<BytecodeInstruction> |
getBranches()
Getter for the field
branches. |
String |
getCFGType()
getCFGType
|
int |
getDistance(BytecodeInstruction v1,
BytecodeInstruction v2)
getDistance
|
BytecodeInstruction |
getEntryPoint()
Getter for the field
entryPoint. |
Set<BytecodeInstruction> |
getExitPoints()
Getter for the field
exitPoints. |
BytecodeInstruction |
getInstruction(int instructionId)
Can be used to retrieve an instruction contained in this CFG identified
by it's instructionId
If no such instruction exists in this CFG, null is returned
|
Set<BytecodeInstruction> |
getJoins()
Getter for the field
joins. |
boolean |
isDirectSuccessor(BytecodeInstruction v1,
BytecodeInstruction v2)
isDirectSuccessor
|
boolean |
isEntryPoint(BasicBlock block)
isEntryPoint
|
boolean |
isExitPoint(BasicBlock block)
isExitPoint
|
boolean |
knowsInstruction(BytecodeInstruction instruction)
Checks whether this graph knows the given instruction.
|
computeDiameter, determineEntryPoint, dotSubFolder, finalise, getClassName, getCyclomaticComplexity, getDiameter, getMethodAccess, getMethodName, getName, isPublicMethod, isStaticMethod, leadsToNodeaddEdge, addEdge, addVertex, addVertices, addVertices, computeReverseJGraph, containsEdge, containsEdge, containsVertex, determineBranches, determineConnectedVertices, determineEntryPoints, determineExitPoints, determineJoins, edgeCount, edgeSet, getChildren, getDistance, getEdge, getEdgeSource, getEdgeTarget, getIsolatedNodes, getNodesWithoutChildren, getParents, getRandomVertex, getSingleChild, hasNPartentsMChildren, incomingEdgesOf, inDegreeOf, isConnected, isDirectSuccessor, isEmpty, outDegreeOf, outgoingEdgesOf, redirectEdges, redirectEdgeSource, redirectEdgeTarget, redirectIncomingEdges, redirectOutgoingEdges, registerEdgeAttributeProvider, registerVertexAttributeProvider, toDot, toFileString, vertexCount, vertexSetpublic ActualControlFlowGraph(RawControlFlowGraph rawGraph)
Constructor for ActualControlFlowGraph.
rawGraph - a RawControlFlowGraph object.protected ActualControlFlowGraph(ActualControlFlowGraph toRevert)
Constructor for ActualControlFlowGraph.
toRevert - a ActualControlFlowGraph
object.public ActualControlFlowGraph computeReverseCFG()
computeReverseCFG
ActualControlFlowGraph object.protected void addBlock(BasicBlock nodeBlock)
addBlock
nodeBlock - a BasicBlock object.protected void addRawEdge(BytecodeInstruction src, BasicBlock target, ControlFlowEdge origEdge)
addRawEdge
src - a BytecodeInstruction object.target - a BasicBlock object.origEdge - a ControlFlowEdge object.protected void addRawEdge(BasicBlock src, BytecodeInstruction target, ControlFlowEdge origEdge)
addRawEdge
src - a BasicBlock object.target - a BytecodeInstruction object.origEdge - a ControlFlowEdge object.protected void addRawEdge(BasicBlock src, BasicBlock target, ControlFlowEdge origEdge)
addRawEdge
src - a BasicBlock object.target - a BasicBlock object.origEdge - a ControlFlowEdge object.public BasicBlock getBlockOf(BytecodeInstruction instruction)
instruction - a BytecodeInstruction object.BasicBlock object.public boolean knowsInstruction(BytecodeInstruction instruction)
instruction - a BytecodeInstruction object.public int getDistance(BytecodeInstruction v1, BytecodeInstruction v2)
getDistance
v1 - a BytecodeInstruction object.v2 - a BytecodeInstruction object.public boolean isDirectSuccessor(BytecodeInstruction v1, BytecodeInstruction v2)
isDirectSuccessor
v1 - a BytecodeInstruction object.v2 - a BytecodeInstruction object.public boolean isEntryPoint(BasicBlock block)
isEntryPoint
block - a BasicBlock object.public boolean isExitPoint(BasicBlock block)
isExitPoint
block - a BasicBlock object.public boolean belongsToMethod(BytecodeInstruction instruction)
belongsToMethod
instruction - a BytecodeInstruction object.public void checkSanity()
checkSanity
public boolean containsInstruction(BytecodeInstruction v)
containsInstruction in class ControlFlowGraph<BasicBlock>v - a BytecodeInstruction object.public BytecodeInstruction getInstruction(int instructionId)
getInstruction in class ControlFlowGraph<BasicBlock>instructionId - a int.BytecodeInstruction object.public BytecodeInstruction getEntryPoint()
Getter for the field entryPoint.
BytecodeInstruction object.public Set<BytecodeInstruction> getExitPoints()
Getter for the field exitPoints.
Set object.public Set<BytecodeInstruction> getBranches()
Getter for the field branches.
Set object.public Set<BytecodeInstruction> getJoins()
Getter for the field joins.
Set object.public String getCFGType()
getCFGType
getCFGType in class ControlFlowGraph<BasicBlock>String object.Copyright © 2010–2017 EvoSuite. All rights reserved.