All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ma.vi.esql.parser.expression.LessThanOrEqual Maven / Gradle / Ivy

Go to download

ESQL, SQL enhanced with metadata compiling to various relational databases

There is a newer version: 0.5.1
Show newest version
/*
 * Copyright (c) 2020 Vikash Madhow
 */

package ma.vi.esql.parser.expression;

import ma.vi.esql.parser.Context;

/**
 * Less-than-or-equal operator in ESQL.
 *
 * @author Vikash Madhow ([email protected])
 */
public class LessThanOrEqual extends RelationalOperator {
  public LessThanOrEqual(Context context, Expression expr1, Expression expr2) {
    super(context, "<=", expr1, expr2);
  }

  public LessThanOrEqual(LessThanOrEqual other) {
    super(other);
  }

  @Override
  public LessThanOrEqual copy() {
    if (!copying()) {
      try {
        copying(true);
        return new LessThanOrEqual(this);
      } finally {
        copying(false);
      }
    } else {
      return this;
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy