public class ArrayAccess extends VEle implements LValueI
a=[1,2,3];
a[2]=4;
b=[[1,2],[3,4]];
b[2,1]=5;
curNumberOfParameters, numberOfParameters| Constructor and Description |
|---|
ArrayAccess() |
| Modifier and Type | Method and Description |
|---|---|
void |
set(EvaluatorI pv,
Node node,
Object value)
Sets the LValue.
|
checkNumberOfParameters, checkStack, getNumberOfParameters, setCurNumberOfParametersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckNumberOfParameters, getNumberOfParameters, setCurNumberOfParameterspublic void set(EvaluatorI pv, Node node, Object value) throws ParseException
set in interface LValueIpv - a pointer to the evaluator. The pv.eval() method can be used to evaluate the children of the node.node - The top node for the LValuevalue - the value obtained by evaluating the right hand side.ParseExceptionCopyright © 2018. All rights reserved.