Class JvmAssumeCaseCfaEdge

All Implemented Interfaces:
CfaEdge<JvmCfaNode>

public class JvmAssumeCaseCfaEdge extends JvmInstructionCfaEdge
An edge representing an assumption that a case of a switch statement is taken.
  • Constructor Details

    • JvmAssumeCaseCfaEdge

      public JvmAssumeCaseCfaEdge(CodeAttribute methodCode, int offset, int assumedCase)
      Create a disconnected JVM CFA assume case edge.
      Parameters:
      methodCode - the code attribute of the method the edge belongs to
      offset - the offset of the instruction represented by the edge
      assumedCase - an assumed integer value of the switch variable
    • JvmAssumeCaseCfaEdge

      public JvmAssumeCaseCfaEdge(JvmCfaNode source, JvmCfaNode target, CodeAttribute methodCode, int offset, int assumedCase)
      Create a JVM CFA assume case 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
      assumedCase - an assumed integer value of the switch variable
  • Method Details

    • getAssumedCase

      public int getAssumedCase()
      Returns the assumed integer value of the switch variable made on this edge.