@Test public void testDisplayString_VariableFieldLocation() { Address address = addr("01002cf5"); Function function = program.getFunctionManager().getFunctionAt(address); Variable variable = function.getParameter(0); int offset = 0; VariableNameFieldLocation location = new VariableNameFieldLocation(program, variable, offset); PreviewTableCellData data = new PreviewTableCellData(location, formatter); String preview = data.getDisplayString(); assertEquals("undefined4 Stack[0x4]:4 param_1", 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);  }