sqlancer.common.ast.newast.NewOrderingTerm Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sqlancer Show documentation
Show all versions of sqlancer Show documentation
SQLancer finds logic bugs in Database Management Systems through automatic testing
package sqlancer.common.ast.newast;
import sqlancer.Randomly;
public class NewOrderingTerm implements Node {
private final Node expr;
private final Ordering ordering;
public enum Ordering {
ASC, DESC;
public static Ordering getRandom() {
return Randomly.fromOptions(values());
}
}
public NewOrderingTerm(Node expr, Ordering ordering) {
this.expr = expr;
this.ordering = ordering;
}
public Node getExpr() {
return expr;
}
public Ordering getOrdering() {
return ordering;
}
}