Package sootup.core.graph
Class BackwardsStmtGraph<V extends BasicBlock<V>>
java.lang.Object
sootup.core.graph.StmtGraph<V>
sootup.core.graph.ForwardingStmtGraph<V>
sootup.core.graph.BackwardsStmtGraph<V>
- Author:
- Zun Wang
-
Field Summary
Fields inherited from class sootup.core.graph.ForwardingStmtGraph
backingGraph -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull List<? extends BasicBlock<?>>@NonNull Collection<Stmt>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.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 nodeintreturns 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`successors(@NonNull Stmt node) returns the outgoing flows of node as ordered List.Methods inherited from class sootup.core.graph.ForwardingStmtGraph
containsNode, degree, exceptionalPredecessors, exceptionalSuccessors, getBlockOf, getBlocks, getStartingStmtBlock, getTailStmtBlocks, iterator, removeExceptionalFlowFromAllBlocksMethods inherited from class sootup.core.graph.StmtGraph
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
-
BackwardsStmtGraph
-
-
Method Details
-
getStartingStmt
- Overrides:
getStartingStmtin classForwardingStmtGraph<V extends BasicBlock<V>>
-
getStartingStmts
-
getNodes
Description copied from class:StmtGraphreturns the nodes in this graph in a non-deterministic order (->Set) to get the nodes in linearized, ordered manner use iterator() or getStmts.- Overrides:
getNodesin classForwardingStmtGraph<V extends BasicBlock<V>>
-
getBlocksSorted
- Overrides:
getBlocksSortedin classForwardingStmtGraph<V extends BasicBlock<V>>
-
predecessors
Description copied from class:StmtGraphreturns 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`- Overrides:
predecessorsin classForwardingStmtGraph<V extends BasicBlock<V>>
-
successors
Description copied from class:StmtGraphreturns the outgoing flows of node as ordered List. The List can have duplicate entries!- Overrides:
successorsin classForwardingStmtGraph<V extends BasicBlock<V>>
-
inDegree
Description copied from class:StmtGraphreturns the amount of ingoing flows into node- Overrides:
inDegreein classForwardingStmtGraph<V extends BasicBlock<V>>
-
outDegree
Description copied from class:StmtGraphreturns the amount of flows that start from node- Overrides:
outDegreein classForwardingStmtGraph<V extends BasicBlock<V>>
-
hasEdgeConnecting
Description copied from class:StmtGraphreturns 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.- Overrides:
hasEdgeConnectingin classForwardingStmtGraph<V extends BasicBlock<V>>
-