|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object vasco.soot.DefaultJimpleRepresentation
public class DefaultJimpleRepresentation
A default program representation for Soot using the Jimple IR. This representation uses control-flow graphs of individual units including exceptional control flow, and resolves virtual calls using the default context-insensitive call graph.
Note: This class follows the Singleton pattern. The singleton
object is available through v()
.
Method Summary | |
---|---|
DirectedGraph<Unit> |
getControlFlowGraph(SootMethod method)
Returns an ExceptionalUnitGraph for a given method. |
List<SootMethod> |
getEntryPoints()
Returns a singleton list containing the main method. |
boolean |
isCall(Unit node)
Returns true iff the Jimple statement contains an
invoke expression. |
List<SootMethod> |
resolveTargets(SootMethod method,
Unit node)
Resolves virtual calls using the default call graph and returns a list of methods which are the targets of explicit edges. |
static DefaultJimpleRepresentation |
v()
Returns a reference to the singleton object of this class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public List<SootMethod> getEntryPoints()
main
method.
getEntryPoints
in interface ProgramRepresentation<SootMethod,Unit>
Scene.getMainMethod()
public DirectedGraph<Unit> getControlFlowGraph(SootMethod method)
ExceptionalUnitGraph
for a given method.
getControlFlowGraph
in interface ProgramRepresentation<SootMethod,Unit>
method
- the method whose CFG to return
public boolean isCall(Unit node)
true
iff the Jimple statement contains an
invoke expression.
isCall
in interface ProgramRepresentation<SootMethod,Unit>
node
- a node in the control-flow graph
public List<SootMethod> resolveTargets(SootMethod method, Unit node)
resolveTargets
in interface ProgramRepresentation<SootMethod,Unit>
method
- the method in which the call statement originatesnode
- the node containing the call statement
null
in the case of native targetspublic static DefaultJimpleRepresentation v()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |