Package com.cloudbees.groovy.cps
Interface LValue
- All Superinterfaces:
Serializable
Represents a variable that's assignable, which is produced
by evaluating
LValueBlock, such as "x[y]"- Author:
- Kohsuke Kawaguchi
-
Method Summary
Modifier and TypeMethodDescriptionget(Continuation k) Computes the value, and passes it to the given continuation when done.set(Object v, Continuation k) Sets the given value to this variable, and passesnullto the given continuation when done.
-
Method Details
-
get
Computes the value, and passes it to the given continuation when done.Just like
Block.eval(Env, Continuation), the actual evaluation is done by the caller by repeatedly step executing the resultingNextobject. -
set
Sets the given value to this variable, and passesnullto the given continuation when done.Just like
Block.eval(Env, Continuation), the actual evaluation is done by the caller by repeatedly step executing the resultingNextobject.
-