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

import com.alibaba.druid.sql.ast.SQLName;
import com.alibaba.druid.sql.ast.SQLStatementImpl;
import com.alibaba.druid.sql.ast.expr.SQLCharExpr;
import com.alibaba.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;
   }
}
