Class IfExpression

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<IfExpression>

    public class IfExpression
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Comparable<IfExpression>
    Conditional: (if test then else)
    See Also:
    Serialized Form
    • Field Detail

      • TYPE_

        public static final Name TYPE_
        Name of the hydra.lisp.syntax.IfExpression type.
      • CONDITION

        public static final Name CONDITION
        Name of the hydra.lisp.syntax.IfExpression.condition field.
      • THEN

        public static final Name THEN
        Name of the hydra.lisp.syntax.IfExpression.then field.
      • ELSE

        public static final Name ELSE
        Name of the hydra.lisp.syntax.IfExpression.else field.
      • condition

        public final Expression condition
        The test expression
      • then

        public final Expression then
        The then branch
    • Constructor Detail

    • Method Detail

      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • compareTo

        public int compareTo​(IfExpression other)
        Specified by:
        compareTo in interface java.lang.Comparable<IfExpression>