improved sql parser.

This commit is contained in:
wenshao
2017-08-31 11:20:04 +08:00
parent ce2daf6b9a
commit 947059f715
36 changed files with 1291 additions and 670 deletions
@@ -21,37 +21,24 @@ import java.util.Map;
import com.alibaba.druid.sql.visitor.SQLASTVisitor;
public interface SQLObject {
void accept(SQLASTVisitor visitor);
SQLObject clone();
void accept(SQLASTVisitor visitor);
SQLObject getParent();
void setParent(SQLObject parent);
SQLObject getParent();
void setParent(SQLObject parent);
Map<String, Object> getAttributes();
Object getAttribute(String name);
void putAttribute(String name, Object value);
Object getAttribute(String name);
void putAttribute(String name, Object value);
Map<String, Object> getAttributesDirect();
void addBeforeComment(String comment);
void addBeforeComment(List<String> comments);
List<String> getBeforeCommentsDirect();
void addAfterComment(String comment);
void addAfterComment(List<String> comments);
List<String> getAfterCommentsDirect();
boolean hasBeforeComment();
boolean hasAfterComment();
void output(StringBuffer buf);
void output(StringBuffer buf);
SQLObject clone();
void addBeforeComment(String comment);
void addBeforeComment(List<String> comments);
List<String> getBeforeCommentsDirect();
void addAfterComment(String comment);
void addAfterComment(List<String> comments);
List<String> getAfterCommentsDirect();
boolean hasBeforeComment();
boolean hasAfterComment();
}