MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / toString

Method toString

src/main/java/core/org/xbill/DNS/Generator.java:247–262  ·  view source on GitHub ↗

Converts the generate specification to a string containing the corresponding $GENERATE statement.

()

Source from the content-addressed store, hash-verified

245 * $GENERATE statement.
246 */
247public String
248toString() {
249 StringBuffer sb = new StringBuffer();
250 sb.append("$GENERATE ");
251 sb.append(start + "-" + end);
252 if (step > 1)
253 sb.append("/" + step);
254 sb.append(" ");
255 sb.append(namePattern + " ");
256 sb.append(ttl + " ");
257 if (dclass != DClass.IN || !Options.check("noPrintIN"))
258 sb.append(DClass.string(dclass) + " ");
259 sb.append(Type.string(type) + " ");
260 sb.append(rdataPattern + " ");
261 return sb.toString();
262}
263
264}

Callers 1

substituteMethod · 0.45

Calls 4

checkMethod · 0.95
stringMethod · 0.95
stringMethod · 0.95
appendMethod · 0.45

Tested by

no test coverage detected