@Override
    public String[][] generateGridArray() {
        int rowSize = size + 1;
        if (rowSize < 6) {
            rowSize = 6;
        }
        String[][] grid = new String[rowSize][2];
        grid[0][1] = "Type";

        /* 第几个值 */
        int valueIndex = valueNumber;
        int rowIndex = 1;
        for (; rowIndex < size + 1;) {
            Type t = (stack.get(valueIndex - 1)).getType();
            int valueSize = t.getSize();

            while (valueSize > 0) {
                grid[rowIndex][0] = stackGraph(rowIndex - 1);
                if (valueSize == 1) {
                    grid[rowIndex][1] = t.getDescriptor();
                }

                valueSize--;
                rowIndex++;
            }
            valueIndex--;
        }

        for (; rowIndex < rowSize; rowIndex++) {
            grid[rowIndex][0] = stackGraph(rowIndex - 1);
        }

        return grid;
    }