Class ArrayAccess
- java.lang.Object
- 
- jadex.rules.parser.conditions.javagrammar.Suffix
- 
- jadex.rules.parser.conditions.javagrammar.ArrayAccess
 
 
- 
 public class ArrayAccess extends Suffix Access an element of an array
- 
- 
Field SummaryFields Modifier and Type Field Description protected ExpressionindexThe element index.
 - 
Constructor SummaryConstructors Constructor Description ArrayAccess(Expression index)Create a new array access.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsVariable(Variable var)Test if a variable is contained in the suffix.booleanequals(java.lang.Object o)Test if this array access is equal to some object.ExpressiongetIndex()Get the index.inthashCode()Get the hash code of array field access.java.lang.StringtoString()Get a string representation of this array access.
 
- 
- 
- 
Field Detail- 
indexprotected Expression index The element index.
 
- 
 - 
Constructor Detail- 
ArrayAccesspublic ArrayAccess(Expression index) Create a new array access.- Parameters:
- index- The element index.
 
 
- 
 - 
Method Detail- 
containsVariablepublic boolean containsVariable(Variable var) Test if a variable is contained in the suffix.- Specified by:
- containsVariablein class- Suffix
- Parameters:
- var- The variable.
- Returns:
- True, when the variable is contained.
 
 - 
getIndexpublic Expression getIndex() Get the index.
 - 
toStringpublic java.lang.String toString() Get a string representation of this array access.- Overrides:
- toStringin class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object o) Test if this array access is equal to some object.- Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() Get the hash code of array field access.- Overrides:
- hashCodein class- java.lang.Object
 
 
- 
 
-