@Test public void testDisplayString_LabelLocation() { Address address = addr(TEST_ADDRESS); int[] componentPath = null; Address refAddr = null; String rep = "dword ptr [DAT_0100993c],0xffffffff"; int opIndex = 0; int charOffset = 0; OperandFieldLocation location = new OperandFieldLocation(program, address, componentPath, refAddr, rep, opIndex, charOffset); PreviewTableCellData data = new PreviewTableCellData(location, formatter); String preview = data.getDisplayString(); assertEquals(MNEMONIC_DISPLAY_STRING, preview); }
public String getDisplayString() { if (displayString != null) { return displayString; } displayString = getPreview(false); return displayString; }
PreviewTableCellData implements Comparable<PreviewTableCellData> { public String getDisplayString() { if (displayString != null) { return displayString; } displayString = getPreview(false); return displayString; } }
PreviewTableCellData implements Comparable<PreviewTableCellData> { public String getDisplayString() { if (displayString != null) { return displayString; } displayString = getPreview(false); return displayString; } PreviewTableCellData(ProgramLocation location, CodeUnitFormat codeUnitFormat); }
PreviewTableCellData implements Comparable<PreviewTableCellData> { public String getDisplayString() { if (displayString != null) { return displayString; } displayString = getPreview(false); return displayString; } PreviewTableCellData(ProgramLocation location, CodeUnitFormat codeUnitFormat); boolean isOffcut(); String getDisplayString(); @Override String toString(); String getHTMLDisplayString(); ProgramLocation getProgramLocation(); @Override int compareTo(PreviewTableCellData data); }
PreviewTableCellData implements Comparable<PreviewTableCellData> { public String getDisplayString() { if (displayString != null) { return displayString; } displayString = getPreview(false); return displayString; } PreviewTableCellData(ProgramLocation location, CodeUnitFormat codeUnitFormat); boolean isOffcut(); String getDisplayString(); @Override String toString(); String getHTMLDisplayString(); ProgramLocation getProgramLocation(); @Override int compareTo(PreviewTableCellData data);  }