001package gudusoft.gsqlparser.nodes; 002 003import gudusoft.gsqlparser.stmt.oracle.TPlsqlCreateType; 004 005/** 006 * Attribute definition of an object type({@link TPlsqlCreateType}) 007*/ 008 009public class TTypeAttribute extends TParseTreeNode { 010 private TObjectName attributeName = null; 011 private TTypeName datatype = null; 012 013 /** 014 * Name of attribute. 015 * @return 016 */ 017 public TObjectName getAttributeName() { 018 return attributeName; 019 } 020 021 /** 022 * Datatype of attribute. 023 * @return 024 */ 025 public TTypeName getDatatype() { 026 return datatype; 027 } 028 029 public void init(Object arg1,Object arg2) 030 { 031 attributeName = (TObjectName)arg1; 032 datatype = (TTypeName)arg2; 033 } 034 035 public void accept(TParseTreeVisitor v){ 036 v.preVisit(this); 037 v.postVisit(this); 038 } 039 040 public void acceptChildren(TParseTreeVisitor v){ 041 v.preVisit(this); 042 v.postVisit(this); 043 } 044 045 public void setAttributeName(TObjectName attributeName) { 046 this.attributeName = attributeName; 047 } 048 049 public void setDatatype(TTypeName datatype) { 050 this.datatype = datatype; 051 } 052}