All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cloudbees.groovy.cps.impl.SuperBlock Maven / Gradle / Ivy

package com.cloudbees.groovy.cps.impl;

import com.cloudbees.groovy.cps.Block;
import com.cloudbees.groovy.cps.Continuation;
import com.cloudbees.groovy.cps.Env;
import com.cloudbees.groovy.cps.Next;

/**
 * @author Kohsuke Kawaguchi
 */
public class SuperBlock implements Block {
    private final Class senderType;

    public SuperBlock(Class senderType) {
        this.senderType = senderType;
    }

    public Next eval(Env e, Continuation k) {
        return k.receive(new Super(senderType,e.closureOwner()));
    }

    private static final long serialVersionUID = 1L;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy