Package gnu.expr

Class ThisExp

    • Field Detail

      • THIS_NAME

        public static final String THIS_NAME
        Non-interned name for implicit 'this' variable.
    • Constructor Detail

      • ThisExp

        public ThisExp()
      • ThisExp

        public ThisExp​(ScopeExp context)
      • ThisExp

        public ThisExp​(ClassType type)
    • Method Detail

      • isForContext

        public final boolean isForContext()
        If this is being used to pass the context instance to a Macro.
      • 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 ReferenceExp
        Throws:
        Throwable
      • getContextScope

        public ScopeExp getContextScope()
      • makeGivingContext

        public static ThisExp makeGivingContext​(ScopeExp context)