public class ArrayAccess extends Suffix
Modifier and Type | Field and Description |
---|---|
protected Expression |
index
The element index.
|
Constructor and Description |
---|
ArrayAccess(Expression index)
Create a new array access.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsVariable(Variable var)
Test if a variable is contained in the suffix.
|
boolean |
equals(java.lang.Object o)
Test if this array access is equal to some object.
|
Expression |
getIndex()
Get the index.
|
int |
hashCode()
Get the hash code of array field access.
|
java.lang.String |
toString()
Get a string representation of this array access.
|
protected Expression index
public ArrayAccess(Expression index)
index
- The element index.public boolean containsVariable(Variable var)
containsVariable
in class Suffix
var
- The variable.public Expression getIndex()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object