public class ArrayElt extends NonStatement implements ILeftExpression
This AST element represents the element of an array.
Example: array[index]
IExpression| Modifier and Type | Method and Description |
|---|---|
static ArrayElt |
build(IExpression array,
IExpression index)
Create a new array element.
|
IExpression |
getArray()
Get the array expression.
|
IExpression |
getIndex()
Get the index expression.
|
void |
setArray(IExpression array)
Set the array expression.
|
void |
setIndex(IExpression index)
Set the index expression.
|
attachTag, getSubElements, replaceSubElement, retrieveTagequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitattachTag, getSubElements, replaceSubElement, retrieveTagpublic static ArrayElt build(IExpression array, IExpression index)
Create a new array element.
array - mandatory array expressionindex - mandatory index expressionpublic IExpression getArray()
Get the array expression.
public IExpression getIndex()
Get the index expression.
public void setArray(IExpression array)
Set the array expression.
array - mandatory array expressionpublic void setIndex(IExpression index)
Set the index expression.
index - mandatory index expression