public class ArrayAccessBlock extends LValueBlock
x[3] or x['foo']Block.Noop| Constructor and Description |
|---|
ArrayAccessBlock(SourceLocation loc,
Block lhs,
Block property) |
| Modifier and Type | Method and Description |
|---|---|
Next |
evalLValue(Env e,
Continuation k)
Evaluate the block as
LValue and pass it to Continuation when done. |
protected Object |
rawGet(Env e,
Object lhs,
Object index) |
protected void |
rawSet(Env e,
Object lhs,
Object index,
Object v) |
asLValue, evalpublic ArrayAccessBlock(SourceLocation loc, Block lhs, Block property)
protected void rawSet(Env e, Object lhs, Object index, Object v) throws Throwable
Throwablepublic Next evalLValue(Env e, Continuation k)
LValueBlockLValue and pass it to Continuation when done.
LValue can then be used to set the value.
evalLValue in class LValueBlockCopyright © 2011–2014. All rights reserved.