ma.vi.esql.parser.expression.LessThanOrEqual Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of esql Show documentation
Show all versions of esql Show documentation
ESQL, SQL enhanced with metadata compiling to various relational databases
/*
* 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;
}
}
}