001package gudusoft.gsqlparser.stmt.oracle; 002 003import gudusoft.gsqlparser.*; 004import gudusoft.gsqlparser.nodes.TObjectName; 005import gudusoft.gsqlparser.nodes.TParseTreeVisitor; 006 007 008/** 009 * The GOTO statement branches unconditionally to a statement label or block label. 010 */ 011public class TPlsqlGotoStmt extends TCustomSqlStatement { 012 013 private TObjectName gotolabelName; 014 015 public TObjectName getGotolabelName() { 016 return gotolabelName; 017 } 018 019 public void init(Object arg1){ 020 this.gotolabelName = (TObjectName)arg1; 021 } 022 023 public TPlsqlGotoStmt(){ 024 this(EDbVendor.dbvoracle); 025 } 026 027 public TPlsqlGotoStmt(EDbVendor dbvendor){ 028 super(dbvendor); 029 sqlstatementtype = ESqlStatementType.sstplsql_gotostmt ; 030 } 031 032 void buildsql() { 033 } 034 035 void clear() { 036 } 037 038 String getasprettytext() { 039 return ""; 040 } 041 042 void iterate(TVisitorAbs pvisitor) { 043 } 044 045 public int doParseStatement(TCustomSqlStatement psql) { 046 super.doParseStatement(psql); 047 return 0; 048 } 049 050 public void accept(TParseTreeVisitor v){ 051 v.preVisit(this); 052 v.postVisit(this); 053 } 054 055 public void acceptChildren(TParseTreeVisitor v){ 056 v.preVisit(this); 057 v.postVisit(this); 058 } 059 060 public void setGotolabelName(TObjectName gotolabelName) { 061 this.gotolabelName = gotolabelName; 062 } 063}