soot.jimple.toolkits.callgraph
Class Edge

java.lang.Object
  extended by soot.jimple.toolkits.callgraph.Edge

public final class Edge
extends Object

Represents a single edge in a call graph.

Author:
Ondrej Lhotak

Constructor Summary
Edge(MethodOrMethodContext src, Stmt srcUnit, MethodOrMethodContext tgt)
           
Edge(MethodOrMethodContext src, Unit srcUnit, MethodOrMethodContext tgt, Kind kind)
           
 
Method Summary
 boolean equals(Object other)
           
 MethodOrMethodContext getSrc()
           
 MethodOrMethodContext getTgt()
           
 int hashCode()
           
static Kind ieToKind(InvokeExpr ie)
           
 boolean isClinit()
          Returns true if the call is to static initializer.
 boolean isExplicit()
          Returns true if the call is due to an explicit invoke statement.
 boolean isInstance()
          Returns true if the call is due to an explicit instance invoke statement.
 boolean isSpecial()
           
 boolean isStatic()
          Returns true if the call is due to an explicit static invoke statement.
 boolean isThreadRunCall()
           
 boolean isVirtual()
           
 Kind kind()
           
 boolean passesParameters()
           
 SootMethod src()
           
 Context srcCtxt()
           
 Stmt srcStmt()
           
 Unit srcUnit()
           
 SootMethod tgt()
           
 Context tgtCtxt()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Edge

public Edge(MethodOrMethodContext src,
            Unit srcUnit,
            MethodOrMethodContext tgt,
            Kind kind)

Edge

public Edge(MethodOrMethodContext src,
            Stmt srcUnit,
            MethodOrMethodContext tgt)
Method Detail

src

public SootMethod src()

srcCtxt

public Context srcCtxt()

getSrc

public MethodOrMethodContext getSrc()

srcUnit

public Unit srcUnit()

srcStmt

public Stmt srcStmt()

tgt

public SootMethod tgt()

tgtCtxt

public Context tgtCtxt()

getTgt

public MethodOrMethodContext getTgt()

kind

public Kind kind()

ieToKind

public static Kind ieToKind(InvokeExpr ie)

isExplicit

public boolean isExplicit()
Returns true if the call is due to an explicit invoke statement.


isInstance

public boolean isInstance()
Returns true if the call is due to an explicit instance invoke statement.


isVirtual

public boolean isVirtual()

isSpecial

public boolean isSpecial()

isClinit

public boolean isClinit()
Returns true if the call is to static initializer.


isStatic

public boolean isStatic()
Returns true if the call is due to an explicit static invoke statement.


isThreadRunCall

public boolean isThreadRunCall()

passesParameters

public boolean passesParameters()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object