use of com.alibaba.druid.sql.ast.SQLWindow in project druid by alibaba.
the class MySqlSelectQueryBlock method accept0.
@Override
public void accept0(MySqlASTVisitor visitor) {
if (visitor.visit(this)) {
for (int i = 0; i < this.selectList.size(); i++) {
SQLSelectItem item = this.selectList.get(i);
if (item != null) {
item.accept(visitor);
}
}
if (this.from != null) {
this.from.accept(visitor);
}
if (this.into != null) {
this.into.accept(visitor);
}
if (this.where != null) {
this.where.accept(visitor);
}
if (this.startWith != null) {
this.startWith.accept(visitor);
}
if (this.connectBy != null) {
this.connectBy.accept(visitor);
}
if (this.groupBy != null) {
this.groupBy.accept(visitor);
}
if (this.windows != null) {
for (SQLWindow item : windows) {
item.accept(visitor);
}
}
if (this.orderBy != null) {
this.orderBy.accept(visitor);
}
if (this.distributeBy != null) {
for (int i = 0; i < distributeBy.size(); i++) {
SQLSelectOrderByItem item = distributeBy.get(i);
item.accept(visitor);
}
}
if (this.sortBy != null) {
for (int i = 0; i < sortBy.size(); i++) {
SQLSelectOrderByItem item = sortBy.get(i);
item.accept(visitor);
}
}
if (this.waitTime != null) {
this.waitTime.accept(visitor);
}
if (this.limit != null) {
this.limit.accept(visitor);
}
if (this.procedureName != null) {
this.procedureName.accept(visitor);
}
if (this.procedureArgumentList != null) {
for (SQLExpr item : procedureArgumentList) {
item.accept(visitor);
}
}
}
visitor.endVisit(this);
}
Aggregations