Class Expr.Or

  • Enclosing class:
    Expr

    public static class Expr.Or
    extends Expr.BinOp
    Class representing or-expressions.
    • Constructor Detail

      • Or

        public Or​(Expr left,
                  Expr right)
        Constructor initializing left and right subexpressions.
        Parameters:
        left - the left subexpression
        right - the right subexpression
    • Method Detail

      • getOp

        protected String getOp()
        Returns " || " as string for the operator.
        Specified by:
        getOp in class Expr.BinOp
        Returns:
        " || "