Class JvmCfaEdge
java.lang.Object
proguard.analysis.cpa.jvm.cfa.edges.JvmCfaEdge
- All Implemented Interfaces:
CfaEdge<JvmCfaNode>
- Direct Known Subclasses:
JvmAssumeExceptionCfaEdge,JvmCallCfaEdge,JvmInstructionCfaEdge
Default implementation of
CfaEdge for JVM instructions.-
Constructor Summary
ConstructorsConstructorDescriptionCreate a disconnected JVM CFA edge.JvmCfaEdge(JvmCfaNode source, JvmCfaNode target) Create a JVM CFA edge. -
Method Summary
Modifier and TypeMethodDescriptionReturns its source node.Returns its target node.voidsetSource(JvmCfaNode source) Sets a node as the predecessor of the edge and adds the edge as leaving edge of the node.voidsetTarget(JvmCfaNode target) Sets a node as the successor of the edge and adds the edge as entering edge of the node.Returns the signature of the target method.
-
Constructor Details
-
JvmCfaEdge
public JvmCfaEdge()Create a disconnected JVM CFA edge. -
JvmCfaEdge
Create a JVM CFA edge. Also sets it as the entering and leaving edge of the source and target nodes.- Parameters:
source- the source node of the edgetarget- the target node of the edge
-
-
Method Details
-
getSource
Description copied from interface:CfaEdgeReturns its source node.- Specified by:
getSourcein interfaceCfaEdge<JvmCfaNode>
-
getTarget
Description copied from interface:CfaEdgeReturns its target node.- Specified by:
getTargetin interfaceCfaEdge<JvmCfaNode>
-
setSource
Sets a node as the predecessor of the edge and adds the edge as leaving edge of the node. -
setTarget
Sets a node as the successor of the edge and adds the edge as entering edge of the node. -
targetSignature
Returns the signature of the target method. This is the current method or, for call edges, the target method of the call.
-