public interface ArrayAccess extends Accessor
Expression
subinterface for array accesses. An ArrayAccess
expression specifies the element in an (potentially) multidimensional array.
For example, to say myArray[2][2][i]
, you might do:
arrayAccess.setName("myArray"); arrayAccess.addDim(intLiteral_2); arrayAccess.addDim(intLiteral_2); arrayAccess.addDim(reference_i);
Modifier and Type | Method and Description |
---|---|
ArrayAccess |
addDim(Expression expr)
Adds the given expression for the next dimension.
|
List<Expression> |
getDims()
Returns a list of dimension-specifying expressions as an list of
Expression . |
getQualExpression, getQualifier, setQualifier
getType
applyStyle, cast, getComment, isActive, isBlockWithAbruptCompletion, setComment, toCode, visit, vm
ArrayAccess addDim(Expression expr)
List<Expression> getDims()
Expression
.Copyright © 2000–2018 jenesis4java. All rights reserved.