Class JvmInstructionCfaEdge

    • Constructor Detail

      • JvmInstructionCfaEdge

        public JvmInstructionCfaEdge​(CodeAttribute methodCode,
                                     int offset)
        Create a disconnected JVM CFA instruction edge.
        Parameters:
        methodCode - the code attribute of the method the edge belongs to
        offset - the offset of the instruction represented by the edge
      • JvmInstructionCfaEdge

        public JvmInstructionCfaEdge​(JvmCfaNode source,
                                     JvmCfaNode target,
                                     CodeAttribute methodCode,
                                     int offset)
        Create a JVM CFA instruction edge. Also sets it as the entering and leaving edge of the source and target nodes.
        Parameters:
        source - the source node of the edge
        target - the target node of the edge
        methodCode - the code attribute of the method the edge belongs to
        offset - the offset of the instruction represented by the edge
    • Method Detail

      • getInstruction

        public Instruction getInstruction()
        Generates and returns the JVM instruction represented by the edge.
      • getMethodCode

        public CodeAttribute getMethodCode()
        Returns the code attribute of the method the node belongs to.