Class LocalVariableReference

    • Field Detail

      • slotNumber

        int slotNumber
    • Constructor Detail

      • LocalVariableReference

        public LocalVariableReference()
        Create a local variable reference. The binding and slot number will be supplied later
      • LocalVariableReference

        public LocalVariableReference​(Binding binding)
        Create a LocalVariableReference bound to a given Binding
        Parameters:
        binding - the binding (that is, the declaration of this local variable)
    • Method Detail

      • setSlotNumber

        public void setSlotNumber​(int slotNumber)
        Set the slot number for this local variable, that is, its position in the local stack frame
        Parameters:
        slotNumber - the slot number to be used
      • getSlotNumber

        public int getSlotNumber()
        Get the slot number allocated to this local variable
        Returns:
        the slot number