001package gudusoft.gsqlparser.nodes; 002/* 003 * Date: 2011-1-13 004 * Time: 16:05:57 005 */ 006 007import gudusoft.gsqlparser.EDbObjectType; 008 009public class TDropIndexItem extends TParseTreeNode { 010 private TObjectName indexName = null; 011 private TObjectName objectName = null; 012 013 public TObjectName getIndexName() { 014 return indexName; 015 } 016 017 public TObjectName getObjectName() { 018 return objectName; 019 } 020 021 public void init(Object arg1, Object arg2){ 022 this.indexName = (TObjectName)arg1; 023 this.indexName.setDbObjectType(EDbObjectType.index); 024 if (arg2 != null){ 025 this.objectName = (TObjectName)arg2; 026 } 027 } 028 029 public void setIndexName(TObjectName indexName) { 030 this.indexName = indexName; 031 } 032 033 public void setObjectName(TObjectName objectName) { 034 this.objectName = objectName; 035 } 036 037 public void accept(TParseTreeVisitor v){ 038 v.preVisit(this); 039 v.postVisit(this); 040 } 041 042 public void acceptChildren(TParseTreeVisitor v){ 043 v.preVisit(this); 044 this.indexName.acceptChildren(v); 045 if (this.objectName != null){ 046 this.objectName.acceptChildren(v); 047 } 048 v.postVisit(this); 049 } 050}