JavaScript is disabled on your browser.
Skip navigation links
gnu.expr

Class SetExp

  • All Implemented Interfaces:
    gnu.kawa.format.Printable, Named, javax.xml.transform.SourceLocator, org.xml.sax.Locator


    public class SetExp
    extends AccessExp 
    An Expression to set (bind) or define a new value to a named variable.
    • Method Detail

      • makeDefinition

        public static SetExp makeDefinition(java.lang.Object symbol,
         Expression val)
      • 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 java.lang.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:
        java.lang.Throwable
      • print

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

AltStyle によって変換されたページ (->オリジナル) /