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

Method getLSTformat

code/src/java/pcgen/core/AgeSet.java:153–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151 }
152
153 public String getLSTformat()
154 {
155 StringBuilder sb = new StringBuilder();
156 sb.append(index).append('|').append(name);
157 if (bonuses != null)
158 {
159 for (BonusObj bo : bonuses)
160 {
161 sb.append('\t').append(bo.getLSTformat());
162 }
163 }
164 if (kits != null)
165 {
166 for (TransitionChoice<Kit> tc : kits)
167 {
168 sb.append('\t').append(tc.getCount()).append(Constants.PIPE);
169 sb.append(tc.getChoices().getLSTformat().replaceAll(Constants.COMMA, Constants.PIPE));
170 }
171 }
172 return sb.toString();
173 }
174
175 /*
176 * Begin items implementing BonusContainer interface

Callers 1

addToAgeMapMethod · 0.95

Calls 6

getLSTformatMethod · 0.65
getCountMethod · 0.65
getChoicesMethod · 0.65
toStringMethod · 0.65
appendMethod · 0.45
replaceAllMethod · 0.45

Tested by

no test coverage detected