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

Method getBonusInfo

code/src/java/pcgen/core/bonus/BonusObj.java:77–95  ·  view source on GitHub ↗

Get Bonus Info @return Bonus info

()

Source from the content-addressed store, hash-verified

75 * @return Bonus info
76 */
77 public String getBonusInfo()
78 {
79 final StringBuilder sb = new StringBuilder(50);
80
81 if (!bonusInfo.isEmpty())
82 {
83 for (int i = 0; i < bonusInfo.size(); ++i)
84 {
85 sb.append(i == 0 ? Constants.EMPTY_STRING : Constants.COMMA);
86 sb.append(unparseToken(bonusInfo.get(i)));
87 }
88 }
89 else
90 {
91 sb.append("|ERROR"); //$NON-NLS-1$
92 }
93
94 return sb.toString().toUpperCase();
95 }
96
97 /**
98 * Return a list of the unparsed (converted back to strings)

Callers 9

getDescriptionMethod · 0.95
appendTempBonusesMethod · 0.95
getDescriptionMethod · 0.80
getDescriptionMethod · 0.80
getExpandedBonusInfoMethod · 0.80
calcBonusesWithCostMethod · 0.80
altersACMethod · 0.80
getBonusFromListMethod · 0.80

Calls 6

unparseTokenMethod · 0.95
isEmptyMethod · 0.65
sizeMethod · 0.65
getMethod · 0.65
toStringMethod · 0.65
appendMethod · 0.45

Tested by

no test coverage detected