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

com.alibaba.simpleEL.dialect.ql.ast.QLBinaryOperator Maven / Gradle / Ivy

The newest version!
package com.alibaba.simpleEL.dialect.ql.ast;


public enum QLBinaryOperator {
    Add("+", 70),
    Subtract("-", 70),
    Multiply("*", 60),
    Divide("/", 60),
    Concat("||", 140),
    BitwiseAnd("&", 90),
    BitwiseNot("!", 130),
    BitwiseOr("|", 100),
    BitwiseXor("^", 50),
    BooleanAnd("AND", 140),
    BooleanOr("OR", 160),
    BooleanXor("XOR", 150),
    Equality("=", 170),
    Assignment(":=", 169),
    GreaterThan(">", 110),
    GreaterThanOrEqual(">=", 110),
    Is("IS", 110),
    LessThan("<", 110),
    LessThanOrEqual("<=", 110),
    LessThanOrEqualOrGreaterThan("<=>", 110),
    LessThanOrGreater("<>", 110),
    LeftShift("<<", 80),
    Like("LIKE", 110),
    RightShift(">>", 80),
    Modulus("%", 60),
    NotEqual("!=", 110),
    NotLessThan("!<", 110),
    NotGreaterThan("!>", 110),
    Union("UNION", 0),
    NotLike("NOT LIKE", 110),
    IsNot("IS NOT", 110),
    Escape("ESCAPE", 110),
    RegExp("REGEXP", 110),
    NotRegExp("NOT REGEXP", 110),
    COLLATE("COLLATE", 20);

    public static int getPriority(QLBinaryOperator operator) {
        return 0;
    }

  

    public final String name;
    public final int priority;

    QLBinaryOperator() {
        this(null, 0);
    }

    QLBinaryOperator(String name, int priority) {
        this.name = name;
        this.priority = priority;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy