Package soot.jimple.toolkits.callgraph
Class Edge
- java.lang.Object
-
- soot.jimple.toolkits.callgraph.Edge
-
- All Implemented Interfaces:
Invalidable
public class Edge extends Object implements Invalidable
Represents a single edge in a call graph.- Author:
- Ondrej Lhotak
-
-
Constructor Summary
Constructors Constructor Description Edge(MethodOrMethodContext src, Stmt srcUnit, MethodOrMethodContext tgt)Edge(MethodOrMethodContext src, Unit srcUnit, MethodOrMethodContext tgt, Kind kind)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)MethodOrMethodContextgetSrc()MethodOrMethodContextgetTgt()inthashCode()static KindieToKind(InvokeExpr ie)voidinvalidate()Invalidates the object.booleanisClinit()Returns true if the call is to static initializer.booleanisExplicit()Returns true if the call is due to an explicit invoke statement.booleanisInstance()Returns true if the call is due to an explicit instance invoke statement.booleanisInvalid()Return true if the object is invalid.booleanisSpecial()booleanisStatic()Returns true if the call is due to an explicit static invoke statement.booleanisThreadRunCall()booleanisVirtual()Kindkind()booleanpassesParameters()SootMethodsrc()ContextsrcCtxt()StmtsrcStmt()UnitsrcUnit()SootMethodtgt()ContexttgtCtxt()StringtoString()
-
-
-
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()
-
isInvalid
public boolean isInvalid()
Description copied from interface:InvalidableReturn true if the object is invalid.- Specified by:
isInvalidin interfaceInvalidable- Returns:
- true if the object is invalid.
-
invalidate
public void invalidate()
Description copied from interface:InvalidableInvalidates the object. Does nothing if the object is already invalid.- Specified by:
invalidatein interfaceInvalidable
-
-