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

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

/*
 * Copyright (c) 2020 Vikash Madhow
 */

package ma.vi.esql.parser.expression;

import ma.vi.esql.parser.Context;

/**
 * Multiplication operator in ESQL.
 *
 * @author Vikash Madhow ([email protected])
 */
public class Multiplication extends ArithmeticOperator {
  public Multiplication(Context context,
                        Expression expr1,
                        Expression expr2) {
    super(context, "*", expr1, expr2);
  }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy