Package com.cloudbees.groovy.cps.impl
Class PropertyAccessBlock
java.lang.Object
com.cloudbees.groovy.cps.LValueBlock
com.cloudbees.groovy.cps.impl.PropertyAccessBlock
- All Implemented Interfaces:
Block,CallSiteBlock,Serializable
Property access expression like
foo.bar, which is an l-value.- 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
ConstructorsConstructorDescriptionPropertyAccessBlock(SourceLocation loc, Collection<CallSiteTag> tags, Block lhs, Block property, boolean safe) -
Method Summary
Modifier and TypeMethodDescriptionevalLValue(Env e, Continuation k) Evaluate the block asLValueand pass it toContinuationwhen done.getTags()Tags associated with this call site.protected Objectprotected voidMethods inherited from class com.cloudbees.groovy.cps.LValueBlock
asLValue, eval
-
Constructor Details
-
PropertyAccessBlock
public PropertyAccessBlock(SourceLocation loc, Collection<CallSiteTag> tags, Block lhs, Block property, boolean safe)
-
-
Method Details
-
rawGet
- Throws:
Throwable
-
rawSet
- Throws:
Throwable
-
getTags
Description copied from interface:CallSiteBlockTags associated with this call site.- Specified by:
getTagsin interfaceCallSiteBlock
-
evalLValue
Description copied from class:LValueBlockEvaluate the block asLValueand pass it toContinuationwhen done.LValuecan then be used to set the value.- Specified by:
evalLValuein classLValueBlock
-