001// GENERATED by ShapeGenerator from scripts/sqllr/shape/shape-spec.tsv (plan 09, slice 1b). Do not edit. 002package gudusoft.gsqlparser.lineage.v2.shape; 003 004/** Mirror of {@code gudusoft.gsqlparser.nodes.TDeclareVariableList}. */ 005public class TDeclareVariableList extends TParseTreeNode { 006 private final Object vElements; 007 008 TDeclareVariableList(Shape shape, int handle, Object[][] v) { 009 super(shape, handle, v); 010 Object[] mine = v[1]; 011 this.vElements = mine[0]; 012 } 013 014 public int size() { 015 return ((Shape.Refs) vElements).handles.length; 016 } 017 018 public TDeclareVariable getDeclareVariable(int index) { 019 int h = ((Shape.Refs) vElements).handles[index]; 020 return h < 0 ? null : (TDeclareVariable) shape.at(h); 021 } 022}