Package cambridge.runtime

Examples of cambridge.runtime.Super


        this.col = col;
    }

    public final void execute(Map<String, Object> bindings, TagNode tag, Writer out) throws TemplateEvaluationException, IOException {
        Object t = bindings.get(getCurrentObjectName());
        Super ts = (Super) bindings.get(getParentObjectName());
        Iter iter = (Iter) bindings.get(getIterObjectName());

        Super s = null;

        if (t != null) {
            s = new Super(t, ts, iter);
            bindings.put(getParentObjectName(), s);
        }

        doExecute(bindings, tag, out);

        if (t != null) {
            bindings.put(getCurrentObjectName(), s.get());
            bindings.put(getParentObjectName(), s.getSuper());
            bindings.put(getIterObjectName(), s.getIter());
        } else {
            bindings.put(getCurrentObjectName(), t);
            bindings.put(getParentObjectName(), ts);
            bindings.put(getIterObjectName(), iter);
        }
View Full Code Here


         Object f = formExpression.eval(bindings);
         if (f instanceof Form) {
            Form form = (Form) f;

            Object t = bindings.get(Expressions.CURRENT_OBJECT);
            Super ts = (Super) bindings.get(Expressions.PARENT_OBJECT);
            Iter iter = (Iter) bindings.get(Expressions.ITER_OBJECT);

            Super s = null;

            if (t != null) {
               s = new Super(t, ts, iter);
               bindings.put(Expressions.PARENT_OBJECT, s);
            }

            bindings.put(Expressions.CURRENT_OBJECT, form);
            super.execute(bindings, out);

            if (t != null) {
               bindings.put(Expressions.CURRENT_OBJECT, s.get());
               bindings.put(Expressions.PARENT_OBJECT, s.getSuper());
               bindings.put(Expressions.ITER_OBJECT, s.getIter());
            } else {
               bindings.put(Expressions.CURRENT_OBJECT, t);
               bindings.put(Expressions.PARENT_OBJECT, ts);
               bindings.put(Expressions.ITER_OBJECT, iter);
            }
View Full Code Here

        this.col = col;
    }

    public final void execute(ExpressionContext context, TagNode tag, Writer out) throws TemplateEvaluationException, IOException {
        Object t = context.get(getCurrentObjectName());
        Super ts = (Super) context.get(getParentObjectName());
        Iter iter = (Iter) context.get(getIterObjectName());

        Super s = null;

        if (t != null) {
            s = new Super(t, ts, iter);
            context.put(getParentObjectName(), s);
        }

        doExecute(context, tag, out);

        if (t != null) {
            context.put(getCurrentObjectName(), s.get());
            context.put(getParentObjectName(), s.getSuper());
            context.put(getIterObjectName(), s.getIter());
        } else {
            context.put(getCurrentObjectName(), t);
            context.put(getParentObjectName(), ts);
            context.put(getIterObjectName(), iter);
        }
View Full Code Here

         Object f = formExpression.eval(bindings);
         if (f instanceof Form) {
            Form form = (Form) f;

            Object t = bindings.get(Expressions.CURRENT_OBJECT);
            Super ts = (Super) bindings.get(Expressions.PARENT_OBJECT);
            Iter iter = (Iter) bindings.get(Expressions.ITER_OBJECT);

            Super s = null;

            if (t != null) {
               s = new Super(t, ts, iter);
               bindings.put(Expressions.PARENT_OBJECT, s);
            }

            bindings.put(Expressions.CURRENT_OBJECT, form);
            super.execute(bindings, out);

            if (t != null) {
               bindings.put(Expressions.CURRENT_OBJECT, s.get());
               bindings.put(Expressions.PARENT_OBJECT, s.getSuper());
               bindings.put(Expressions.ITER_OBJECT, s.getIter());
            } else {
               bindings.put(Expressions.CURRENT_OBJECT, t);
               bindings.put(Expressions.PARENT_OBJECT, ts);
               bindings.put(Expressions.ITER_OBJECT, iter);
            }
View Full Code Here

TOP

Related Classes of cambridge.runtime.Super

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.