Package sootup.core.graph
Class ImmutableBlockControlFlowGraph
java.lang.Object
sootup.core.graph.ControlFlowGraph<ImmutableBlockControlFlowGraph.ImmutableBasicBlock>
sootup.core.graph.ImmutableBlockControlFlowGraph
public class ImmutableBlockControlFlowGraph
extends ControlFlowGraph<ImmutableBlockControlFlowGraph.ImmutableBasicBlock>
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsNode(@NonNull Stmt node) exceptionalPredecessors(@NonNull Stmt node) it is possible to reach traphandlers through inline code i.e. without any exceptional flowexceptionalSuccessors(@NonNull Stmt node) getBlockOf(@NonNull Stmt stmt) @NonNull List<? extends BasicBlock<?>>getNodes()returns the nodes in this graph in a non-deterministic order (->Set) to get the nodes in linearized, ordered manner use iterator() or getStmts.@Nullable StmtBasicBlock<?>List<BasicBlock<?>>booleanhasEdgeConnecting(@NonNull Stmt source, @NonNull Stmt target) returns true if there is a flow between source and target throws an Exception if at least one of the parameters is not contained in the graph.intreturns the amount of ingoing flows into nodeiterator()intreturns the amount of flows that start from nodepredecessors(@NonNull Stmt node) returns the ingoing flows to node as an List with no reliable/specific order and possibly duplicate entries i.e. if a JSwitchStmt has multiple cases that brnach to `node`voidremoveExceptionalFlowFromAllBlocks(ClassType classType, Stmt exceptionHandlerStmt) Removes the specified exceptional flow from all blocks.successors(@NonNull Stmt node) returns the outgoing flows of node as ordered List.Methods inherited from class sootup.core.graph.ControlFlowGraph
degree, equals, getAllSuccessors, getBlockIterator, getBranchTargetsOf, getEntrypoints, getExtendedBasicBlockPathBetween, getStmts, getTails, isStmtBranchTarget, toString, validateStmtConnectionsInGraphMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ImmutableBlockControlFlowGraph
-
-
Method Details
-
getStartingStmt
- Specified by:
getStartingStmtin classControlFlowGraph<ImmutableBlockControlFlowGraph.ImmutableBasicBlock>
-
getStartingStmtBlock
- Specified by:
getStartingStmtBlockin classControlFlowGraph<ImmutableBlockControlFlowGraph.ImmutableBasicBlock>
-
getTailStmtBlocks
- Specified by:
getTailStmtBlocksin classControlFlowGraph<ImmutableBlockControlFlowGraph.ImmutableBasicBlock>
-
getBlockOf
public BasicBlock<ImmutableBlockControlFlowGraph.ImmutableBasicBlock> getBlockOf(@NonNull Stmt stmt) - Specified by:
getBlockOfin classControlFlowGraph<ImmutableBlockControlFlowGraph.ImmutableBasicBlock>
-
getNodes
Description copied from class:ControlFlowGraphreturns the nodes in this graph in a non-deterministic order (->Set) to get the nodes in linearized, ordered manner use iterator() or getStmts.- Specified by:
getNodesin classControlFlowGraph<ImmutableBlockControlFlowGraph.ImmutableBasicBlock>
-
getBlocks
- Specified by:
getBlocksin classControlFlowGraph<ImmutableBlockControlFlowGraph.ImmutableBasicBlock>
-
getBlocksSorted
- Specified by:
getBlocksSortedin classControlFlowGraph<ImmutableBlockControlFlowGraph.ImmutableBasicBlock>
-
containsNode
- Specified by:
containsNodein classControlFlowGraph<ImmutableBlockControlFlowGraph.ImmutableBasicBlock>
-
predecessors
Description copied from class:ControlFlowGraphreturns the ingoing flows to node as an List with no reliable/specific order and possibly duplicate entries i.e. if a JSwitchStmt has multiple cases that brnach to `node`- Specified by:
predecessorsin classControlFlowGraph<ImmutableBlockControlFlowGraph.ImmutableBasicBlock>
-
exceptionalPredecessors
Description copied from class:ControlFlowGraphit is possible to reach traphandlers through inline code i.e. without any exceptional flow- Specified by:
exceptionalPredecessorsin classControlFlowGraph<ImmutableBlockControlFlowGraph.ImmutableBasicBlock>
-
successors
Description copied from class:ControlFlowGraphreturns the outgoing flows of node as ordered List. The List can have duplicate entries!- Specified by:
successorsin classControlFlowGraph<ImmutableBlockControlFlowGraph.ImmutableBasicBlock>
-
exceptionalSuccessors
- Specified by:
exceptionalSuccessorsin classControlFlowGraph<ImmutableBlockControlFlowGraph.ImmutableBasicBlock>
-
inDegree
Description copied from class:ControlFlowGraphreturns the amount of ingoing flows into node- Specified by:
inDegreein classControlFlowGraph<ImmutableBlockControlFlowGraph.ImmutableBasicBlock>
-
outDegree
Description copied from class:ControlFlowGraphreturns the amount of flows that start from node- Specified by:
outDegreein classControlFlowGraph<ImmutableBlockControlFlowGraph.ImmutableBasicBlock>
-
hasEdgeConnecting
Description copied from class:ControlFlowGraphreturns true if there is a flow between source and target throws an Exception if at least one of the parameters is not contained in the graph.- Specified by:
hasEdgeConnectingin classControlFlowGraph<ImmutableBlockControlFlowGraph.ImmutableBasicBlock>
-
removeExceptionalFlowFromAllBlocks
Description copied from class:ControlFlowGraphRemoves the specified exceptional flow from all blocks.- Specified by:
removeExceptionalFlowFromAllBlocksin classControlFlowGraph<ImmutableBlockControlFlowGraph.ImmutableBasicBlock>- Parameters:
classType- The class type of the exceptional flow.exceptionHandlerStmt- The handler statement of the exceptional flow.
-
iterator
- Specified by:
iteratorin interfaceIterable<Stmt>- Overrides:
iteratorin classControlFlowGraph<ImmutableBlockControlFlowGraph.ImmutableBasicBlock>
-