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

com.cloudbees.groovy.cps.LValue Maven / Gradle / Ivy

There is a newer version: 1.31
Show newest version
package com.cloudbees.groovy.cps;

import java.io.Serializable;

/**
 * Represents a variable that's assignable, which is produced
 * by evaluating {@link LValueBlock}, such as "x[y]"
 *
 *
 * @author Kohsuke Kawaguchi
 */
public interface LValue extends Serializable {
    /**
     * Computes the value, and passes it to the given continuation when done.
     *
     * 

* Just like {@link Block#eval(Env, Continuation)}, the actual evaluation is done * by the caller by repeatedly {@linkplain Next#step() step executing} * the resulting {@link Next} object. */ Next get(Continuation k); /** * Sets the given value to this variable, and passes {@code null} to the given continuation when done. * *

* Just like {@link Block#eval(Env, Continuation)}, the actual evaluation is done * by the caller by repeatedly {@linkplain Next#step() step executing} * the resulting {@link Next} object. */ Next set(Object v, Continuation k); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy