Package gnu.expr

Class SetExp

    • Method Detail

      • getNewValue

        public final Expression getNewValue()
        Get the Expression for calculating the new ("right-hand") value.
      • setNewValue

        public void setNewValue​(Expression newValue)
      • isDefining

        public final boolean isDefining()
      • setDefining

        public final void setDefining​(boolean value)
      • getHasValue

        public final boolean getHasValue()
        True if evaluating the SetExp yields the value of the RHS.
      • setHasValue

        public final void setHasValue​(boolean value)
      • isFuncDef

        public final boolean isFuncDef()
        True if this is a functon definition ("defun").
      • setFuncDef

        public final void setFuncDef​(boolean value)
      • isSetIfUnbound

        public final boolean isSetIfUnbound()
      • setSetIfUnbound

        public final void setSetIfUnbound​(boolean value)
      • apply

        public void apply​(CallContext ctx)
                   throws Throwable
        Description copied from class: Expression
        Evaluate the expression. This is named apply rather than eval so it is compatible with the full-tail-call calling convention, and we can stash an Expression in CallContext's proc field. FIXME - are we making use of this?
        Overrides:
        apply in class Expression
        Throws:
        Throwable
      • print

        public void print​(gnu.kawa.io.OutPort out)
        Specified by:
        print in class Expression