@Test public final void testAddress() { final CellRef CellRef1 = this.util.newCellRef(0, 0); Assert.assertEquals("A1", CellRef1.toString()); final CellRef CellRef2 = this.util.newCellRef(1, 2); Assert.assertEquals("C2", CellRef2.toString()); final CellRef CellRef3 = this.util.newCellRef(0, 25); Assert.assertEquals("Z1", CellRef3.toString()); final CellRef CellRef4 = this.util.newCellRef(0, 26); Assert.assertEquals("AA1", CellRef4.toString()); final CellRef CellRef5 = this.util.newCellRef(0, 52); Assert.assertEquals("BA1", CellRef5.toString()); final CellRef CellRef6 = this.util.newCellRef(0, 1023); Assert.assertEquals("AMJ1", CellRef6.toString()); }
public CellRef newCellRef(final String address) throws ParseException, IOException { return CellAddressParser.create(this.tableNameUtil).parse(address); }
PositionUtil { public CellRef newCellRef(final String address) throws ParseException, IOException { return CellAddressParser.create(this.tableNameUtil).parse(address); } }
PositionUtil { public CellRef newCellRef(final String address) throws ParseException, IOException { return CellAddressParser.create(this.tableNameUtil).parse(address); } PositionUtil(final TableNameUtil tableNameUtil); }
PositionUtil { public CellRef newCellRef(final String address) throws ParseException, IOException { return CellAddressParser.create(this.tableNameUtil).parse(address); } PositionUtil(final TableNameUtil tableNameUtil); static PositionUtil create(); CellRef newCellRef(final String address); CellRef newCellRef(final int row, final int col); CellRef newCellRef(final Table table, final int row, final int col); String toCellAddress(final int row, final int col); String toCellAddress(final Table table, final int row, final int col); String toRangeAddress(final int row1, final int col1, final int row2, final int col2); String toRangeAddress(final Table table, final int row1, final int col1, final int row2,
                                 final int col2); void checkTableName(final CharSequence name); }
PositionUtil { public CellRef newCellRef(final String address) throws ParseException, IOException { return CellAddressParser.create(this.tableNameUtil).parse(address); } PositionUtil(final TableNameUtil tableNameUtil); static PositionUtil create(); CellRef newCellRef(final String address); CellRef newCellRef(final int row, final int col); CellRef newCellRef(final Table table, final int row, final int col); String toCellAddress(final int row, final int col); String toCellAddress(final Table table, final int row, final int col); String toRangeAddress(final int row1, final int col1, final int row2, final int col2); String toRangeAddress(final Table table, final int row1, final int col1, final int row2,
                                 final int col2); void checkTableName(final CharSequence name); static final int ALPHABET_SIZE; static final int ORD_A; }