Class ExistentialDeclaration


  • public class ExistentialDeclaration
    extends Expression
    Demand the existence of an object and bind an instance to a variable.
    • Constructor Detail

      • ExistentialDeclaration

        public ExistentialDeclaration​(OAVObjectType type,
                                      Variable variable)
        Create a new existential declaration.
        Parameters:
        type - The object type.
        variable - The variable.
    • 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.
      • getVariable

        public Variable getVariable()
        Get the variable.
      • toString

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

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

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