Class PrimaryExpression


  • public class PrimaryExpression
    extends Expression
    A computable value composed of primary value and zero to many suffixes.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Expression prefix
      The prefix value expression.
      protected Suffix[] suffixes
      The suffixes.
    • 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 expression.
      boolean equals​(java.lang.Object o)
      Test if this primary expression is equal to some object.
      Expression getPrefix()
      Get the prefix value expression.
      Suffix[] getSuffixes()
      Get the suffixes.
      int hashCode()
      Get the hash code of this primary expression.
      java.lang.String toString()
      Get a string representation of this primary expression.
      • Methods inherited from class java.lang.Object

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

      • prefix

        protected Expression prefix
        The prefix value expression.
      • suffixes

        protected Suffix[] suffixes
        The suffixes.
    • Constructor Detail

      • PrimaryExpression

        public PrimaryExpression​(Expression prefix,
                                 Suffix[] suffixes)
        Create a new primary expression.
    • Method Detail

      • containsVariable

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

        public Expression getPrefix()
        Get the prefix value expression.
      • getSuffixes

        public Suffix[] getSuffixes()
        Get the suffixes.
      • toString

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

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

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