Class LiveVarNode


public class LiveVarNode extends Object
A LiveVarNode contains a CFG node, which can only be a LocalVariableNode or FieldAccessNode. It is used to represent the estimate of live variables at certain CFG block during dataflow analysis. We override `.equals` in this class to compare nodes by value equality rather than reference equality. We want two different nodes with the same value (that is, two nodes refer to the same live variable in the program) to be regarded as the same.
  • Field Details

  • Constructor Details

    • LiveVarNode

      public LiveVarNode(Node n)
      Create a new live variable.
      n - a node
  • Method Details