MCPcopy Create free account
hub / github.com/PCGen/pcgen / returnName

Method returnName

code/src/java/pcgen/cdom/enumeration/EqModNameOpt.java:62–74  ·  view source on GitHub ↗
(Equipment parent, EquipmentModifier mod)

Source from the content-addressed store, hash-verified

60 NORMAL
61 {
62 @Override
63 public String returnName(Equipment parent, EquipmentModifier mod)
64 {
65 StringBuilder sb = new StringBuilder(100);
66 sb.append(mod.getDisplayName());
67 if (!parent.getAssociationList(mod).isEmpty())
68 {
69 sb.append(" (");
70 sb.append(associatedList(parent.getAssociationList(mod)));
71 sb.append(')');
72 }
73 return sb.toString().trim().replace('|', ' ');
74 }
75 },
76 NOLIST
77 {

Callers 1

getNameFromModifiersMethod · 0.80

Calls 15

associatedListMethod · 0.95
getSpellInfoStringMethod · 0.95
getContextMethod · 0.95
splitMethod · 0.95
joinMethod · 0.95
ordinalMethod · 0.95
getSpellInfoMethod · 0.95
trimMethod · 0.80
getDisplayNameMethod · 0.65
isEmptyMethod · 0.65

Tested by

no test coverage detected