Package gnu.expr

Class BlockExp

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

    public class BlockExp
    extends Expression
    Class used to implement a block that can be exited.
    • Constructor Detail

      • BlockExp

        public BlockExp()
    • Method Detail

      • setBody

        public void setBody​(Expression body)
      • setRunFinallyBlocks

        public void setRunFinallyBlocks​(boolean value)
      • setLabel

        public void setLabel​(Declaration label)
      • 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