Class FieldAccess


  • public class FieldAccess
    extends Suffix
    Access a field of a value.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String name
      The name of the field.
    • Constructor Summary

      Constructors 
      Constructor Description
      FieldAccess​(java.lang.String name)
      Create a new field 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 field access is equal to some object.
      java.lang.String getName()
      Get the name of the field.
      int hashCode()
      Get the hash code of this field access.
      java.lang.String toString()
      Get a string representation of this field access.
      • Methods inherited from class java.lang.Object

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

      • name

        protected java.lang.String name
        The name of the field.
    • Constructor Detail

      • FieldAccess

        public FieldAccess​(java.lang.String name)
        Create a new field access.
        Parameters:
        name - The field name.
    • 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.
      • getName

        public java.lang.String getName()
        Get the name of the field.
      • toString

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

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

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