Class Expr.Not

  • Enclosing class:
    Expr

    public static class Expr.Not
    extends Expr
    Class representing not-expressions.
    • Field Detail

      • sub

        public final Expr sub
        The subexpression of this not-expression.
    • Constructor Detail

      • Not

        public Not​(Expr sub)
        Constructor initializing the subexpression.
        Parameters:
        sub - the subexpression
    • Method Detail

      • toString

        public String toString()
        Returns a string representation.
        Overrides:
        toString in class Object
        Returns:
        the string representation
      • accept

        public <R> R accept​(Visitor<R> v)
        Accepts a visitor by calling the Visitor.visitNot(Not) method.
        Specified by:
        accept in class Expr
        Type Parameters:
        R - the type of the return value of the visitor.
        Parameters:
        v - the visitor
        Returns:
        the return value