Class LocalVariableReference

    • Constructor Detail

      • LocalVariableReference

        public LocalVariableReference​(StructuredQName name)
        Create a local variable reference. The binding and slot number will be supplied later
        Parameters:
        name - the name of the local variable
      • LocalVariableReference

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

      • copy

        public Expression copy​(RebindingMap rebindings)
        Create a clone copy of this VariableReference
        Specified by:
        copy in class VariableReference
        Parameters:
        rebindings - a mutable list of (old binding, new binding) pairs that is used to update the bindings held in any local variable references that are copied.
        Returns:
        the cloned copy
      • setBinding

        public void setBinding​(LocalBinding binding)
      • 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
      • getExpressionName

        public java.lang.String getExpressionName()
        Get a name identifying the kind of expression, in terms meaningful to a user.
        Overrides:
        getExpressionName in class VariableReference
        Returns:
        a name identifying the kind of expression, in terms meaningful to a user. The name will always be in the form of a lexical XML QName, and should match the name used in export() output displaying the expression.