Package qilin.core.builder.callgraph
Class Edge
java.lang.Object
qilin.core.builder.callgraph.Edge
- All Implemented Interfaces:
Invalidable
Represents a single edge in a call graph.
- Author:
- Ondrej Lhotak
-
Constructor Summary
ConstructorDescriptionEdge
(ContextMethod src, InvokableStmt srcUnit, ContextMethod tgt) Edge
(ContextMethod src, InvokableStmt srcUnit, ContextMethod tgt, Kind kind) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getSrc()
getTgt()
int
hashCode()
static Kind
void
Invalidates the object.boolean
isClinit()
Returns true if the call is to static initializer.boolean
Returns true if the call is due to an explicit invoke statement.boolean
Returns true if the call is due to an explicit instance invoke statement.boolean
Return true if the object is invalid.boolean
boolean
isStatic()
Returns true if the call is due to an explicit static invoke statement.boolean
boolean
kind()
boolean
src()
srcCtxt()
srcStmt()
srcUnit()
tgt()
tgtCtxt()
toString()
-
Constructor Details
-
Edge
-
Edge
-
-
Method Details
-
src
-
srcCtxt
-
getSrc
-
srcUnit
-
srcStmt
-
tgt
-
tgtCtxt
-
getTgt
-
kind
-
ieToKind
-
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:Invalidable
Return true if the object is invalid.- Specified by:
isInvalid
in interfaceInvalidable
- Returns:
- true if the object is invalid.
-
invalidate
public void invalidate()Description copied from interface:Invalidable
Invalidates the object. Does nothing if the object is already invalid.- Specified by:
invalidate
in interfaceInvalidable
-
hashCode
public int hashCode() -
equals
-
toString
-