|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IFlowGraph
| Method Summary | |
|---|---|
void |
addSubgraphForNode(CGNode node)
add representation of flow for a node, if not already present |
SSAInvokeInstruction |
getInstrReturningTo(LocalPointerKey pk)
get the SSAInvokeInstruction whose return value is assigned to a
pointer key. |
java.util.Iterator<SSAInvokeInstruction> |
getInstrsPassingParam(LocalPointerKey pk)
|
java.util.Set<CGNode> |
getPossibleTargets(CGNode caller,
CallSiteReference site,
LocalPointerKey actualPk)
get the callees that should be considered at a particular call site |
java.util.Set<CallSiteAndCGNode> |
getPotentialCallers(PointerKey formalPk)
|
java.util.Iterator<PointerKey> |
getReadsOfInstanceField(PointerKey pk,
IField f)
|
java.util.Iterator<? extends java.lang.Object> |
getReadsOfStaticField(StaticFieldKey sfk)
|
java.util.Iterator<PointerKey> |
getWritesToInstanceField(PointerKey pk,
IField f)
|
java.util.Iterator<? extends java.lang.Object> |
getWritesToStaticField(StaticFieldKey sfk)
|
boolean |
hasSubgraphForNode(CGNode node)
|
boolean |
isParam(LocalPointerKey pk)
|
void |
visitPreds(java.lang.Object node,
IFlowLabel.IFlowLabelVisitor v)
Apply a visitor to the predecessors of some node. |
void |
visitSuccs(java.lang.Object node,
IFlowLabel.IFlowLabelVisitor v)
Apply a visitor to the successors of some node. |
| Methods inherited from interface com.ibm.wala.util.graph.Graph |
|---|
removeNodeAndEdges |
| Methods inherited from interface com.ibm.wala.util.graph.NodeManager |
|---|
addNode, containsNode, getNumberOfNodes, iterator, removeNode |
| Methods inherited from interface com.ibm.wala.util.graph.EdgeManager |
|---|
addEdge, getPredNodeCount, getPredNodes, getSuccNodeCount, getSuccNodes, hasEdge, removeAllIncidentEdges, removeEdge, removeIncomingEdges, removeOutgoingEdges |
| Methods inherited from interface com.ibm.wala.util.graph.labeled.LabeledEdgeManager |
|---|
addEdge, getDefaultLabel, getEdgeLabels, getPredLabels, getPredNodeCount, getPredNodes, getSuccLabels, getSuccNodeCount, getSuccNodes, hasEdge, removeEdge |
| Methods inherited from interface com.ibm.wala.util.graph.EdgeManager |
|---|
addEdge, getPredNodeCount, getPredNodes, getSuccNodeCount, getSuccNodes, hasEdge, removeAllIncidentEdges, removeEdge, removeIncomingEdges, removeOutgoingEdges |
| Method Detail |
|---|
void visitSuccs(java.lang.Object node,
IFlowLabel.IFlowLabelVisitor v)
node - v -
void visitPreds(java.lang.Object node,
IFlowLabel.IFlowLabelVisitor v)
node - v -
void addSubgraphForNode(CGNode node)
throws java.lang.IllegalArgumentException
node -
java.lang.IllegalArgumentException - if node == nullboolean hasSubgraphForNode(CGNode node)
boolean isParam(LocalPointerKey pk)
pk -
true iff pk is a formal parameterjava.util.Iterator<SSAInvokeInstruction> getInstrsPassingParam(LocalPointerKey pk)
pk -
SSAInvokeInstructions passing some pointer as a
parameterSSAInvokeInstruction getInstrReturningTo(LocalPointerKey pk)
SSAInvokeInstruction whose return value is assigned to a
pointer key.
pk -
null if no return value is
assigned to pk
java.util.Iterator<? extends java.lang.Object> getWritesToStaticField(StaticFieldKey sfk)
throws java.lang.IllegalArgumentException
sfk - the static field
java.lang.IllegalArgumentException - if sfk == null
java.util.Iterator<? extends java.lang.Object> getReadsOfStaticField(StaticFieldKey sfk)
throws java.lang.IllegalArgumentException
sfk - the static field
java.lang.IllegalArgumentException - if sfk == null
java.util.Iterator<PointerKey> getWritesToInstanceField(PointerKey pk,
IField f)
java.util.Iterator<PointerKey> getReadsOfInstanceField(PointerKey pk,
IField f)
java.util.Set<CallSiteAndCGNode> getPotentialCallers(PointerKey formalPk)
formalPk - a PointerKey representing either a formal parameter or return value
CallSiteAndCGNodes representing pointer callers of formalPk's method
java.util.Set<CGNode> getPossibleTargets(CGNode caller,
CallSiteReference site,
LocalPointerKey actualPk)
caller - the callersite - the call siteactualPk - a LocalPointerKey corresponding to the actual parameter or
return value of interest. This may be used to filter out certain callees.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||