Class ArrayAccess


  • public class ArrayAccess
    extends Suffix
    Access an element of an array
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Expression index
      The element index.
    • Constructor Summary

      Constructors 
      Constructor Description
      ArrayAccess​(Expression index)
      Create a new array access.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • index

        protected Expression index
        The element index.
    • Constructor Detail

      • ArrayAccess

        public ArrayAccess​(Expression index)
        Create a new array access.
        Parameters:
        index - The element index.
    • Method Detail

      • containsVariable

        public boolean containsVariable​(Variable var)
        Test if a variable is contained in the suffix.
        Specified by:
        containsVariable in class Suffix
        Parameters:
        var - The variable.
        Returns:
        True, when the variable is contained.
      • getIndex

        public Expression getIndex()
        Get the index.
      • toString

        public java.lang.String toString()
        Get a string representation of this array access.
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Test if this array access is equal to some object.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Get the hash code of array field access.
        Overrides:
        hashCode in class java.lang.Object