package com.alibaba.druid.sql.dialect.dm.ast.stmt;

import com.alibaba.druid.sql.ast.SQLName;
import com.alibaba.druid.sql.dialect.dm.visitor.DmASTVisitor;

public class DmGotoStatement extends DmStatementImpl {
   private SQLName label;

   public DmGotoStatement() {
   }

   public DmGotoStatement(SQLName label) {
      this.label = label;
   }

   public void accept0(DmASTVisitor visitor) {
      if (visitor.visit(this)) {
         this.acceptChild(visitor, this.label);
      }

      visitor.endVisit(this);
   }

   public SQLName getLabel() {
      return this.label;
   }

   public void setLabel(SQLName label) {
      this.label = label;
   }
}
