MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / getTipString

Method getTipString

src/main/java/PrivacyLists/PrivacyItem.java:131–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

129 }
130
131 public String getTipString() {
132 StringBuffer tip=new StringBuffer(actions[action]);
133 tip.append(" if ").append(types[type]);
134 if (type!=ITEM_ANY) {
135 tip.append('=').append(value);
136 }
137 tip.append(' ');
138
139 if (messageStz && presenceInStz && presenceOutStz && iqStz) {
140 tip.append("all stanzas");
141 } else if (!messageStz && !presenceInStz && !presenceOutStz && !iqStz) {
142 tip.append("all stanzas");
143 } else {
144 if (messageStz) { tip.append(stanzas[STANZA_MSG]); tip.append(" "); }
145 if (presenceInStz) { tip.append(stanzas[STANZA_PRESENCE_IN]); tip.append(" "); }
146 if (presenceOutStz) { tip.append(stanzas[STANZA_PRESENCE_OUT]); tip.append(" "); }
147 if (iqStz) { tip.append(stanzas[STANZA_IQ]); tip.append(" "); }
148 }
149 return tip.toString();
150 }
151}
152
153//#endif

Callers

nothing calls this directly

Calls 2

appendMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected