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

Method getDescription

code/src/java/plugin/bonustokens/LockedStat.java:73–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71 }
72
73 @Override
74 public String getDescription()
75 {
76 AbstractReferenceContext rc = Globals.getContext().getReferenceContext();
77 final PCStat pcstat = rc.silentlyGetConstructedCDOMObject(PCStat.class, getBonusInfo());
78 if (pcstat != null)
79 {
80 return pcstat.getDisplayName() + " (locked)";
81 }
82 return super.getDescription();
83 }
84
85}

Callers

nothing calls this directly

Calls 6

getContextMethod · 0.95
getBonusInfoMethod · 0.80
getReferenceContextMethod · 0.65
getDisplayNameMethod · 0.65
getDescriptionMethod · 0.65

Tested by

no test coverage detected