com.xlrit.gears.base.snel.Operator Maven / Gradle / Ivy
package com.xlrit.gears.base.snel;
/*
* prefixOp : '-' | 'not' ;
* postfixOp : 'exists' | 'does not exist' ;
* mulOp : '*' | '/' | '%' ;
* addOp : '+' | '-' ;
* eqOp : '==' | '<>' | 'like' ;
* relOp : '<' | '>' | '<=' | '>=' ;
* memberOp : 'in' | 'contains' ;
* andOp : 'and' | '&&' ;
* orOp : 'or' | '||' ;
* otherwiseOp : 'otherwise' ;
*/
public class Operator {
public static final String NEG = "-"; // prefix
public static final String NOT = "not";
public static final String EXISTS = "exists"; // postfix
public static final String NEXISTS = "does not exist";
public static final String OR = "||"; // or
public static final String AND = "&&"; // and
public static final String PLUS = "+";
public static final String MINUS = "-";
public static final String MUL = "*";
public static final String DIV = "/";
public static final String MOD = "%";
public static final String EQ = "==";
public static final String NE = "<>";
public static final String LIKE = "like";
public static final String LT = "<"; // rel
public static final String LE = "<=";
public static final String GT = ">";
public static final String GE = ">=";
public static final String IN = "in"; // member
public static final String CONTAINS = "contains";
}