代码格式化

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@76 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-05-14 09:49:00 +00:00
parent aad6bad813
commit 3e3d52f080
68 changed files with 1697 additions and 2929 deletions
@@ -16,14 +16,12 @@
package com.alibaba.druid.sql.ast.expr;
public enum SQLBinaryOperator {
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),
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(SQLBinaryOperator operator) {
@@ -22,6 +22,6 @@ public abstract class SQLNumericLiteralExpr extends SQLLiteralExpr {
public SQLNumericLiteralExpr(){
}
public abstract Number getNumber();
}