Class CastExpression


  • public class CastExpression
    extends Expression
    An unary operation operates on one value.
    • Constructor Detail

    • 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.
      • getValue

        public Expression getValue()
        Get the value.
      • toString

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

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

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