/** * Define an unnamed buffer which is scoped (symbol and buffer) to the trigger scope/block. * * @param tableAST The RECORD_NAME node. Must already have the Table symbol linked to it. */ @Override public void defineBufferForTrigger(JPNode tableAST) { LOG.trace("Entering defineBufferForTrigger {}", tableAST); ITable table = astTableLink(tableAST); TableBuffer bufSymbol = currentScope.defineBuffer("", table); currentBlock.getBufferForReference(bufSymbol); // Create the BufferScope currSymbol = bufSymbol; }
/** * Define an unnamed buffer which is scoped (symbol and buffer) to the trigger scope/block. * * @param tableAST The RECORD_NAME node. Must already have the Table symbol linked to it. */ @Override public void defineBufferForTrigger(JPNode tableAST) { LOG.trace("Entering defineBufferForTrigger {}", tableAST); ITable table = astTableLink(tableAST); TableBuffer bufSymbol = currentScope.defineBuffer("", table); currentBlock.getBufferForReference(bufSymbol); // Create the BufferScope currSymbol = bufSymbol; }
/** * Define a buffer. If the buffer is initialized at the same time it is defined (as in a buffer parameter), then * parameter init should be true. */ @Override public void defineBuffer(JPNode defAST, JPNode idNode, JPNode tableAST, boolean init) { LOG.trace("Entering defineBuffer {} {} {} {}", defAST, idNode, tableAST, init); ITable table = astTableLink(tableAST); TableBuffer bufSymbol = currentScope.defineBuffer(idNode.getText(), table); currSymbol = bufSymbol; bufSymbol.setDefOrIdNode((JPNode) defAST); idNode.setLink(IConstants.SYMBOL, bufSymbol); if (init) { BufferScope bufScope = currentBlock.getBufferForReference(bufSymbol); idNode.setLink(IConstants.BUFFERSCOPE, bufScope); } }
/** * Define a buffer. If the buffer is initialized at the same time it is defined (as in a buffer parameter), then * parameter init should be true. */ @Override public void defineBuffer(JPNode defAST, JPNode idNode, JPNode tableAST, boolean init) { LOG.trace("Entering defineBuffer {} {} {} {}", defAST, idNode, tableAST, init); ITable table = astTableLink(tableAST); TableBuffer bufSymbol = currentScope.defineBuffer(idNode.getText(), table); currSymbol = bufSymbol; bufSymbol.setDefOrIdNode((JPNode) defAST); idNode.setLink(IConstants.SYMBOL, bufSymbol); if (init) { BufferScope bufScope = currentBlock.getBufferForReference(bufSymbol); idNode.setLink(IConstants.BUFFERSCOPE, bufScope); } }
isDefault = true; TableBuffer newBuff = currentScope.defineBuffer(isDefault ? "" : buffName, table); recordNode.setTableBuffer(newBuff); currentBlock.addHiddenCursor(recordNode);
isDefault = true; TableBuffer newBuff = currentScope.defineBuffer(isDefault ? "" : buffName, table); recordNode.setTableBuffer(newBuff); currentBlock.addHiddenCursor(recordNode);