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

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

There is a newer version: 1.31
Show newest version
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;

/**
 * Constant value.
 *
 * @author Kohsuke Kawaguchi
 */
public class ConstantBlock implements Block {
    public final Object value;

    public ConstantBlock(Object value) {
        this.value = value;
    }

    public Next eval(Env e, Continuation k) {
        return k.receive(value);
    }

    private static final long serialVersionUID = 1L;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy