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

sqlancer.common.ast.newast.NewOrderingTerm Maven / Gradle / Ivy

Go to download

SQLancer finds logic bugs in Database Management Systems through automatic testing

There is a newer version: 2.0.0
Show newest version
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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy