Package com.cloudbees.groovy.cps.impl
Class ArrayAccessBlock
java.lang.Object
com.cloudbees.groovy.cps.LValueBlock
com.cloudbees.groovy.cps.impl.ArrayAccessBlock
- All Implemented Interfaces:
Block,CallSiteBlock,Serializable
Array access like
x[3] or x['foo']- 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
ConstructorsConstructorDescriptionArrayAccessBlock(SourceLocation loc, Collection<CallSiteTag> tags, Block lhs, Block property) -
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
-
ArrayAccessBlock
public ArrayAccessBlock(SourceLocation loc, Collection<CallSiteTag> tags, Block lhs, Block property)
-
-
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
-