001package gudusoft.gsqlparser.nodes; 002 003public class TSubscripts extends TParseTreeNode { 004 private TConstant first; 005 private TConstant last; 006 007 public void init (Object arg1){ 008 first = (TConstant)arg1; 009 } 010 011 public void init (Object arg1,Object arg2){ 012 init(arg1); 013 last = (TConstant)arg2; 014 } 015 016 public TConstant getFirst() { 017 return first; 018 } 019 020 public TConstant getLast() { 021 return last; 022 } 023 024 public void setFirst(TConstant first) { 025 this.first = first; 026 } 027 028 public void setLast(TConstant last) { 029 this.last = last; 030 } 031 032 public void accept(TParseTreeVisitor v){ 033 v.preVisit(this); 034 v.postVisit(this); 035 } 036 037 public void acceptChildren(TParseTreeVisitor v){ 038 v.preVisit(this); 039 v.postVisit(this); 040 } 041}