Package com.cloudbees.groovy.cps
Class LValueBlock
java.lang.Object
com.cloudbees.groovy.cps.LValueBlock
- All Implemented Interfaces:
Block,Serializable
- Direct Known Subclasses:
ArrayAccessBlock,AttributeAccessBlock,LocalVariableBlock,PropertyAccessBlock,StaticFieldBlock
Base class for
Block that can come to the left hand side of an assignment, aka "l-value"
Subtypes implement evalLValue(Env, Continuation) that computes LValue object,
which provides read/write access.- Author:
- Kohsuke Kawaguchi
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.cloudbees.groovy.cps.Block
Block.Noop -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal BlockasLValue()final Nexteval(Env e, Continuation k) Evaluates to the value.protected abstract NextevalLValue(Env e, Continuation k) Evaluate the block asLValueand pass it toContinuationwhen done.
-
Constructor Details
-
LValueBlock
public LValueBlock()
-
-
Method Details
-
eval
Evaluates to the value. Getter. -
evalLValue
Evaluate the block asLValueand pass it toContinuationwhen done.LValuecan then be used to set the value. -
asLValue
-