/** * Define a new BufferSymbol. * * @param name Input "" for a default or unnamed buffer, otherwise the "named buffer" name. */ public TableBuffer defineBuffer(String name, ITable table) { TableBuffer buffer = new TableBuffer(name, this, table); addTableBuffer(name, table, buffer); return buffer; }
/** * Define a new BufferSymbol. * * @param name Input "" for a default or unnamed buffer, otherwise the "named buffer" name. */ public TableBuffer defineBuffer(String name, ITable table) { TableBuffer buffer = new TableBuffer(name, this, table); addTableBuffer(name, table, buffer); return buffer; }
/** * Add a TableBuffer for names lookup. This is called when copying a SymbolScopeSuper's symbols for inheritance * purposes. */ private void add(TableBuffer tableBuffer) { ITable table = tableBuffer.getTable(); addTableBuffer(tableBuffer.getName(), table, tableBuffer); getRootScope().addTableDefinitionIfNew(table); }
/** * Add a TableBuffer for names lookup. This is called when copying a SymbolScopeSuper's symbols for inheritance * purposes. */ private void add(TableBuffer tableBuffer) { ITable table = tableBuffer.getTable(); addTableBuffer(tableBuffer.getName(), table, tableBuffer); getRootScope().addTableDefinitionIfNew(table); }