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

import com.alibaba.druid.sql.ast.SQLExpr;
import com.alibaba.druid.sql.ast.SQLObject;
import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;
import java.util.Arrays;
import java.util.List;

public class MySqlShowCharacterSetStatement extends MySqlStatementImpl implements MySqlShowStatement {
   private SQLExpr where;
   private SQLExpr pattern;

   public void accept0(MySqlASTVisitor visitor) {
      if (visitor.visit(this)) {
         this.acceptChild(visitor, this.where);
         this.acceptChild(visitor, this.pattern);
      }

      visitor.endVisit(this);
   }

   public SQLExpr getWhere() {
      return this.where;
   }

   public void setWhere(SQLExpr where) {
      this.where = where;
   }

   public SQLExpr getPattern() {
      return this.pattern;
   }

   public void setPattern(SQLExpr pattern) {
      this.pattern = pattern;
   }

   public List<SQLObject> getChildren() {
      return Arrays.asList(this.where, this.pattern);
   }
}
