package util.sqlparse.visitor.greenplum.visitor;

import com.chenyang.druid.sql.ast.SQLStatement;
import com.chenyang.druid.sql.dialect.greenplum.ast.GPSQLIndexSpec;
import com.chenyang.druid.sql.dialect.greenplum.ast.GPSQLPartition;
import com.chenyang.druid.sql.dialect.greenplum.ast.GPSQLPartitionBy;
import com.chenyang.druid.sql.dialect.greenplum.ast.expr.GPBoxExpr;
import com.chenyang.druid.sql.dialect.greenplum.ast.expr.GPCidrExpr;
import com.chenyang.druid.sql.dialect.greenplum.ast.expr.GPCircleExpr;
import com.chenyang.druid.sql.dialect.greenplum.ast.expr.GPColumnSimpleDefinitionExpr;
import com.chenyang.druid.sql.dialect.greenplum.ast.expr.GPExtractExpr;
import com.chenyang.druid.sql.dialect.greenplum.ast.expr.GPInetExpr;
import com.chenyang.druid.sql.dialect.greenplum.ast.expr.GPLineSegmentsExpr;
import com.chenyang.druid.sql.dialect.greenplum.ast.expr.GPMacAddrExpr;
import com.chenyang.druid.sql.dialect.greenplum.ast.expr.GPOptionValue;
import com.chenyang.druid.sql.dialect.greenplum.ast.expr.GPPointExpr;
import com.chenyang.druid.sql.dialect.greenplum.ast.expr.GPPolygonExpr;
import com.chenyang.druid.sql.dialect.greenplum.ast.expr.GPSQLObjectCollection;
import com.chenyang.druid.sql.dialect.greenplum.ast.expr.GPSchemaTables;
import com.chenyang.druid.sql.dialect.greenplum.ast.expr.GPTypeCastExpr;
import com.chenyang.druid.sql.dialect.greenplum.ast.expr.constraint.GPConstraint;
import com.chenyang.druid.sql.dialect.greenplum.ast.expr.constraint.GPStorageParameter;
import com.chenyang.druid.sql.dialect.greenplum.ast.expr.tablesource.GPExprTableSource;
import com.chenyang.druid.sql.dialect.greenplum.ast.expr.tablesource.GPFunctionTableSource;
import com.chenyang.druid.sql.dialect.greenplum.ast.expr.tablesource.GPMethodInvokeTableSource;
import com.chenyang.druid.sql.dialect.greenplum.ast.expr.tablesource.GPRowsFromTableSource;
import com.chenyang.druid.sql.dialect.greenplum.ast.expr.tablesource.GPSubqueryTableSource;
import com.chenyang.druid.sql.dialect.greenplum.ast.expr.tablesource.GPValuesTableSource;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.GPAlterDatabaseStatement;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.GPAlterIndexStatement;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.GPAlterSchemaStatement;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.GPAlterSequenceStatement;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.GPAlterTableStatement;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.GPAlterViewStatement;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.GPConnectToStatement;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.GPCreateDatabaseStatement;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.GPCreateIndexStatement;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.GPCreateSchemaStatement;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.GPCreateSeqenceStatement;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.GPCreateTableSpaceStatement;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.GPCreateTableStatement;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.GPCreateViewStatement;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.GPDeleteStatement;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.GPDropSchemaStatement;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.GPDropSequenceStatement;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.GPGrantStatement;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.GPInsertStatement;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.GPSelectQueryBlock;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.GPSelectStatement;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.GPShowStatement;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.GPStartTransactionStatement;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.GPUpdateStatement;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.alterTable.GPAlterTableAddColumn;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.alterTable.GPAlterTableAddConstraint;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.alterTable.GPAlterTableAlterColumn;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.alterTable.GPAlterTableAlterColumnOptions;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.alterTable.GPAlterTableCluster;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.alterTable.GPAlterTableDisableEnabelTrigger;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.alterTable.GPAlterTableDropColumn;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.alterTable.GPAlterTableDropConstraint;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.alterTable.GPAlterTableInheriteOrNotParentTable;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.alterTable.GPAlterTableOf;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.alterTable.GPAlterTableRenameColumn;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.alterTable.GPAlterTableRenameConstraint;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.alterTable.GPAlterTableRenameTo;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.alterTable.GPAlterTableSetNewTableSpace;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.alterTable.GPAlterTableSetReset;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.alterTable.GPAlterTableSetSchema;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.alterTable.GPAlterTableSetTableSpace;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.alterTable.GPAlterTableSetWith;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.alterTable.GPAlterTableValidateConstraint;
import com.chenyang.druid.sql.dialect.greenplum.ast.stmt.alterTable.GPColumnDefinition;
import com.chenyang.druid.sql.dialect.greenplum.visitor.GPASTVisitor;
import java.util.List;
import util.sqlparse.visitor.Formater;

public class FormatVisitor extends Formater implements GPASTVisitor {
   private boolean debug = false;

   public void perform(List<SQLStatement> statements) {
      if (statements != null && statements.size() != 0) {
         for(SQLStatement statement : statements) {
            statement.accept(this);
         }

      }
   }

   public void endVisit(GPSelectQueryBlock x) {
   }

   public boolean visit(GPSelectQueryBlock x) {
      return false;
   }

   public void endVisit(GPSelectQueryBlock.FetchClause x) {
   }

   public boolean visit(GPSelectQueryBlock.FetchClause x) {
      return false;
   }

   public void endVisit(GPSelectQueryBlock.ForClause x) {
   }

   public boolean visit(GPSelectQueryBlock.ForClause x) {
      return false;
   }

   public void endVisit(GPDeleteStatement x) {
   }

   public boolean visit(GPDeleteStatement x) {
      return false;
   }

   public void endVisit(GPInsertStatement x) {
   }

   public boolean visit(GPInsertStatement x) {
      return false;
   }

   public void endVisit(GPSelectStatement x) {
   }

   public boolean visit(GPSelectStatement x) {
      return false;
   }

   public void endVisit(GPUpdateStatement x) {
   }

   public boolean visit(GPUpdateStatement x) {
      return false;
   }

   public void endVisit(GPFunctionTableSource x) {
   }

   public boolean visit(GPFunctionTableSource x) {
      return false;
   }

   public void endVisit(GPTypeCastExpr x) {
   }

   public boolean visit(GPTypeCastExpr x) {
      return false;
   }

   public void endVisit(GPExtractExpr x) {
   }

   public boolean visit(GPExtractExpr x) {
      return false;
   }

   public void endVisit(GPBoxExpr x) {
   }

   public boolean visit(GPBoxExpr x) {
      return false;
   }

   public void endVisit(GPPointExpr x) {
   }

   public boolean visit(GPPointExpr x) {
      return false;
   }

   public void endVisit(GPMacAddrExpr x) {
   }

   public boolean visit(GPMacAddrExpr x) {
      return false;
   }

   public void endVisit(GPInetExpr x) {
   }

   public boolean visit(GPInetExpr x) {
      return false;
   }

   public void endVisit(GPCidrExpr x) {
   }

   public boolean visit(GPCidrExpr x) {
      return false;
   }

   public void endVisit(GPPolygonExpr x) {
   }

   public boolean visit(GPPolygonExpr x) {
      return false;
   }

   public void endVisit(GPCircleExpr x) {
   }

   public boolean visit(GPCircleExpr x) {
      return false;
   }

   public void endVisit(GPLineSegmentsExpr x) {
   }

   public boolean visit(GPLineSegmentsExpr x) {
      return false;
   }

   public void endVisit(GPShowStatement x) {
   }

   public boolean visit(GPShowStatement x) {
      return false;
   }

   public void endVisit(GPStartTransactionStatement x) {
   }

   public boolean visit(GPStartTransactionStatement x) {
      return false;
   }

   public void endVisit(GPConnectToStatement x) {
   }

   public boolean visit(GPConnectToStatement x) {
      return false;
   }

   public void endVisit(GPCreateSchemaStatement x) {
   }

   public boolean visit(GPCreateSchemaStatement x) {
      return false;
   }

   public void endVisit(GPDropSchemaStatement x) {
   }

   public boolean visit(GPDropSchemaStatement x) {
      return false;
   }

   public void endVisit(GPAlterSchemaStatement x) {
   }

   public boolean visit(GPAlterSchemaStatement x) {
      return false;
   }

   public void endVisit(GPMethodInvokeTableSource x) {
   }

   public boolean visit(GPMethodInvokeTableSource x) {
      return false;
   }

   public void endVisit(GPExprTableSource x) {
   }

   public boolean visit(GPExprTableSource x) {
      return false;
   }

   public void endVisit(GPSubqueryTableSource x) {
   }

   public boolean visit(GPSubqueryTableSource x) {
      return false;
   }

   public void endVisit(GPValuesTableSource x) {
   }

   public boolean visit(GPValuesTableSource x) {
      return false;
   }

   public void endVisit(GPValuesTableSource.ValueRow x) {
   }

   public boolean visit(GPValuesTableSource.ValueRow x) {
      return false;
   }

   public void endVisit(GPSelectQueryBlock.ForClauses x) {
   }

   public boolean visit(GPSelectQueryBlock.ForClauses x) {
      return false;
   }

   public void endVisit(GPColumnSimpleDefinitionExpr x) {
   }

   public boolean visit(GPColumnSimpleDefinitionExpr x) {
      return false;
   }

   public void endVisit(GPRowsFromTableSource x) {
   }

   public boolean visit(GPRowsFromTableSource x) {
      return false;
   }

   public void endVisit(GPAlterDatabaseStatement x) {
   }

   public boolean visit(GPAlterDatabaseStatement x) {
      return false;
   }

   public void endVisit(GPAlterIndexStatement x) {
   }

   public boolean visit(GPAlterIndexStatement x) {
      return false;
   }

   public void endVisit(GPAlterSequenceStatement x) {
   }

   public boolean visit(GPAlterSequenceStatement x) {
      return false;
   }

   public void endVisit(GPAlterTableStatement x) {
   }

   public boolean visit(GPAlterTableStatement x) {
      return false;
   }

   public void endVisit(GPAlterTableRenameColumn x) {
   }

   public boolean visit(GPAlterTableRenameColumn x) {
      return false;
   }

   public void endVisit(GPAlterTableRenameConstraint x) {
   }

   public boolean visit(GPAlterTableRenameConstraint x) {
      return false;
   }

   public void endVisit(GPAlterTableRenameTo x) {
   }

   public boolean visit(GPAlterTableRenameTo x) {
      return false;
   }

   public void endVisit(GPAlterTableSetSchema x) {
   }

   public boolean visit(GPAlterTableSetSchema x) {
      return false;
   }

   public void endVisit(GPAlterTableSetNewTableSpace x) {
   }

   public boolean visit(GPAlterTableSetNewTableSpace x) {
      return false;
   }

   public void endVisit(GPAlterTableSetWith x) {
   }

   public boolean visit(GPAlterTableSetWith x) {
      return false;
   }

   public void endVisit(GPAlterTableAddColumn x) {
   }

   public boolean visit(GPAlterTableAddColumn x) {
      return false;
   }

   public void endVisit(GPAlterTableSetWith.GPAlterTableDistributeByOption x) {
   }

   public boolean visit(GPAlterTableSetWith.GPAlterTableDistributeByOption x) {
      return false;
   }

   public void endVisit(GPAlterTableDropColumn x) {
   }

   public boolean visit(GPAlterTableDropColumn x) {
      return false;
   }

   public void endVisit(GPAlterTableAlterColumn x) {
   }

   public boolean visit(GPAlterTableAlterColumn x) {
      return false;
   }

   public void endVisit(GPAlterTableAlterColumnOptions x) {
   }

   public boolean visit(GPAlterTableAlterColumnOptions x) {
      return false;
   }

   public void endVisit(GPAlterTableAlterColumnOptions.GPAlterTableAlterColumnOptionValue x) {
   }

   public boolean visit(GPAlterTableAlterColumnOptions.GPAlterTableAlterColumnOptionValue x) {
      return false;
   }

   public void endVisit(GPAlterTableAddConstraint x) {
   }

   public boolean visit(GPAlterTableAddConstraint x) {
      return false;
   }

   public void endVisit(GPAlterTableAddConstraint.GPAlterTableAddConstraintUsingIndex x) {
   }

   public boolean visit(GPAlterTableAddConstraint.GPAlterTableAddConstraintUsingIndex x) {
      return false;
   }

   public void endVisit(GPAlterTableValidateConstraint x) {
   }

   public boolean visit(GPAlterTableValidateConstraint x) {
      return false;
   }

   public void endVisit(GPAlterTableDropConstraint x) {
   }

   public boolean visit(GPAlterTableDropConstraint x) {
      return false;
   }

   public void endVisit(GPAlterTableDisableEnabelTrigger x) {
   }

   public boolean visit(GPAlterTableDisableEnabelTrigger x) {
      return false;
   }

   public void endVisit(GPAlterTableCluster x) {
   }

   public boolean visit(GPAlterTableCluster x) {
      return false;
   }

   public void endVisit(GPAlterTableSetReset x) {
   }

   public boolean visit(GPAlterTableSetReset x) {
      return false;
   }

   public void endVisit(GPAlterTableSetReset.StorageParameter x) {
   }

   public boolean visit(GPAlterTableSetReset.StorageParameter x) {
      return false;
   }

   public void endVisit(GPAlterTableInheriteOrNotParentTable x) {
   }

   public boolean visit(GPAlterTableInheriteOrNotParentTable x) {
      return false;
   }

   public void endVisit(GPAlterTableOf x) {
   }

   public boolean visit(GPAlterTableOf x) {
      return false;
   }

   public void endVisit(GPAlterTableSetTableSpace x) {
   }

   public boolean visit(GPAlterTableSetTableSpace x) {
      return false;
   }

   public void endVisit(GPCreateDatabaseStatement x) {
   }

   public boolean visit(GPCreateDatabaseStatement x) {
      return false;
   }

   public void endVisit(GPConstraint x) {
   }

   public boolean visit(GPConstraint x) {
      return false;
   }

   public void endVisit(GPConstraint.GPConstraintCheck x) {
   }

   public boolean visit(GPConstraint.GPConstraintCheck x) {
      return false;
   }

   public void endVisit(GPConstraint.GPUnique x) {
   }

   public boolean visit(GPConstraint.GPUnique x) {
      return false;
   }

   public void endVisit(GPConstraint.GPPrimaryKey x) {
   }

   public boolean visit(GPConstraint.GPPrimaryKey x) {
      return false;
   }

   public void endVisit(GPConstraint.GPForeignKey x) {
   }

   public boolean visit(GPConstraint.GPForeignKey x) {
      return false;
   }

   public void endVisit(GPOptionValue x) {
   }

   public boolean visit(GPOptionValue x) {
      return false;
   }

   public void endVisit(GPStorageParameter x) {
   }

   public boolean visit(GPStorageParameter x) {
      return false;
   }

   public void endVisit(GPConstraint.GPIndexParamaters x) {
   }

   public boolean visit(GPConstraint.GPIndexParamaters x) {
      return false;
   }

   public void endVisit(GPConstraint.GPReference x) {
   }

   public boolean visit(GPConstraint.GPReference x) {
      return false;
   }

   public void endVisit(GPColumnDefinition x) {
   }

   public boolean visit(GPColumnDefinition x) {
      return false;
   }

   public void endVisit(GPCreateTableStatement x) {
   }

   public boolean visit(GPCreateTableStatement x) {
      return false;
   }

   public void endVisit(GPCreateTableStatement.GPTableDistributedBy x) {
   }

   public boolean visit(GPCreateTableStatement.GPTableDistributedBy x) {
      return false;
   }

   public void endVisit(GPSQLObjectCollection x) {
   }

   public boolean visit(GPSQLObjectCollection x) {
      return false;
   }

   public void endVisit(GPSchemaTables x) {
   }

   public boolean visit(GPSchemaTables x) {
      return false;
   }

   public void endVisit(GPGrantStatement x) {
   }

   public boolean visit(GPGrantStatement x) {
      return false;
   }

   public boolean visit(GPAlterViewStatement x) {
      return false;
   }

   public boolean visit(GPCreateSeqenceStatement x) {
      return false;
   }

   public boolean visit(GPCreateTableSpaceStatement x) {
      return false;
   }

   public boolean visit(GPCreateViewStatement x) {
      return false;
   }

   public boolean visit(GPDropSequenceStatement x) {
      return false;
   }

   public boolean visit(GPSQLPartitionBy x) {
      return false;
   }

   public boolean visit(GPSQLPartition x) {
      return false;
   }

   public boolean visit(GPSQLIndexSpec x) {
      return false;
   }

   public boolean visit(GPCreateIndexStatement x) {
      return false;
   }
}
