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

Method getLSTformat

code/src/java/plugin/qualifier/skill/RanksToken.java:63–86  ·  view source on GitHub ↗
(boolean useAny)

Source from the content-addressed store, hash-verified

61 }
62
63 @Override
64 public String getLSTformat(boolean useAny)
65 {
66 StringBuilder sb = new StringBuilder();
67 if (negated)
68 {
69 sb.append('!');
70 }
71 sb.append(getTokenName());
72 sb.append('=');
73 if (maxRank)
74 {
75 sb.append(MAXRANK);
76 }
77 else
78 {
79 sb.append(ranks);
80 }
81 if (wasRestricted)
82 {
83 sb.append('[').append(pcs.getLSTformat(useAny)).append(']');
84 }
85 return sb.toString();
86 }
87
88 @Override
89 public boolean initialize(LoadContext context, SelectionCreator<Skill> sc, String condition, String value,

Callers

nothing calls this directly

Calls 4

getTokenNameMethod · 0.95
getLSTformatMethod · 0.65
toStringMethod · 0.65
appendMethod · 0.45

Tested by

no test coverage detected