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
ConstructorsConstructorDescriptionEdge(ContextMethod src, InvokableStmt srcUnit, ContextMethod tgt) Edge(ContextMethod src, InvokableStmt srcUnit, ContextMethod tgt, Kind kind) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetSrc()getTgt()inthashCode()static KindvoidInvalidates the object.booleanisClinit()Returns true if the call is to static initializer.booleanReturns true if the call is due to an explicit invoke statement.booleanReturns true if the call is due to an explicit instance invoke statement.booleanReturn true if the object is invalid.booleanbooleanisStatic()Returns true if the call is due to an explicit static invoke statement.booleanbooleankind()booleansrc()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: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
-
hashCode
public int hashCode() -
equals
-
toString
-