private void buildSingleCell ( final Cell cell , final Map < String , Object > context , final ConfigBuildRef configBuildRef , final ShiftFormulaRef shiftFormulaRef ) { try { CommandUtility . evaluate ( context , cell , configBuildRef . getEngine ( ) ) ; if ( cell . getCellTypeEnum ( ) == CellType . FORMULA ) { // rebuild formula if necessary for dynamic row String originFormula = cell . getCellFormula ( ) ; shiftFormulaRef . setFormulaChanged ( 0 ) ; ConfigurationUtility . buildCellFormulaForShiftedRows ( configBuildRef . getSheet ( ) , configBuildRef . getWbWrapper ( ) , shiftFormulaRef , cell , cell . getCellFormula ( ) ) ; if ( shiftFormulaRef . getFormulaChanged ( ) > 0 ) { configBuildRef . getCachedCells ( ) . put ( cell , originFormula ) ; } } } catch ( Exception ex ) { LOG . log ( Level . SEVERE , "build cell ( row = " + cell . getRowIndex ( ) + " column = " + cell . getColumnIndex ( ) + " error = " + ex . getLocalizedMessage ( ) , ex ) ; } }
Builds the single cell .