package com.chenyang.druid.sql.ast.statement;

import com.chenyang.druid.sql.ast.SQLName;
import com.chenyang.druid.sql.ast.SQLStatementImpl;
import com.chenyang.druid.sql.ast.expr.SQLCharExpr;
import com.chenyang.druid.sql.visitor.SQLASTVisitor;
import java.util.ArrayList;
import java.util.List;

public class SQLRestoreStatement extends SQLStatementImpl {
   private SQLName type;
   private List<SQLCharExpr> properties = new ArrayList();

   protected void accept0(SQLASTVisitor visitor) {
      if (visitor.visit(this)) {
         this.acceptChild(visitor, this.type);
         this.acceptChild(visitor, this.properties);
      }

      visitor.endVisit(this);
   }

   public SQLName getType() {
      return this.type;
   }

   public void setType(SQLName type) {
      this.type = type;
   }

   public List<SQLCharExpr> getProperties() {
      return this.properties;
   }
}
