/** * Defining a table field is done in two steps. The first step creates the field and field buffer but does not assign * the field to the table yet. The second step assigns the field to the table. We don't want the field assigned to the * table until we're done examining the field options, because we don't want the field available for lookup due to * situations like this: def temp-table tt1 field DependentCare like DependentCare. * * @return The Object that is expected to be passed as an argument to defineTableFieldFinalize. * @see #defineTableFieldFinalize(Object) */ @Override public Symbol defineTableFieldInitialize(JPNode idNode) { LOG.trace("Entering defineTableFieldInitialize {}", idNode); FieldBuffer fieldBuff = rootScope.defineTableFieldDelayedAttach(idNode.getText(), currDefTable); currSymbol = fieldBuff; fieldBuff.setDefOrIdNode(idNode); idNode.setLink(IConstants.SYMBOL, fieldBuff); return fieldBuff; }
/** * Defining a table field is done in two steps. The first step creates the field and field buffer but does not assign * the field to the table yet. The second step assigns the field to the table. We don't want the field assigned to the * table until we're done examining the field options, because we don't want the field available for lookup due to * situations like this: def temp-table tt1 field DependentCare like DependentCare. * * @return The Object that is expected to be passed as an argument to defineTableFieldFinalize. * @see #defineTableFieldFinalize(Object) */ @Override public Symbol defineTableFieldInitialize(JPNode idNode) { LOG.trace("Entering defineTableFieldInitialize {}", idNode); FieldBuffer fieldBuff = rootScope.defineTableFieldDelayedAttach(idNode.getText(), currDefTable); currSymbol = fieldBuff; fieldBuff.setDefOrIdNode(idNode); idNode.setLink(IConstants.SYMBOL, fieldBuff); return fieldBuff; }