001package gudusoft.gsqlparser.nodes; 002 003/** 004 * A structure includes function name and arguments 005 * 006 */ 007public class TFunctionHeader extends TParseTreeNode{ 008 private TObjectName functionName; 009 private TParameterDeclarationList args; 010 011 public void init(Object arg1){ 012 this.functionName = (TObjectName)arg1; 013 } 014 015 public TObjectName getFunctionName() { 016 return functionName; 017 } 018 019 public TParameterDeclarationList getArgs() { 020 return args; 021 } 022 023 public void init(Object arg1, Object arg2){ 024 init(arg1); 025 this.args =(TParameterDeclarationList)arg2; 026 } 027 028 public void accept(TParseTreeVisitor v) { 029 v.preVisit(this); 030 v.postVisit(this); 031 } 032 033 public void acceptChildren(TParseTreeVisitor v) { 034 v.preVisit(this); 035 v.postVisit(this); 036 } 037}