MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / toString

Method toString

src/main/java/org/htmlunit/html/HtmlScript.java:289–302  ·  view source on GitHub ↗

Returns a string representation of this object. @return a string representation of this object

()

Source from the content-addressed store, hash-verified

287 * @return a string representation of this object
288 */
289 @Override
290 public String toString() {
291 final StringWriter writer = new StringWriter();
292 final PrintWriter printWriter = new PrintWriter(writer);
293
294 printWriter.print(getClass().getSimpleName());
295 printWriter.print("[<");
296 printOpeningTagContentAsXml(printWriter);
297 printWriter.print(">");
298 printWriter.print(getScriptCode());
299 printWriter.print("]");
300 printWriter.flush();
301 return writer.toString();
302 }
303
304 /**
305 * {@inheritDoc}

Callers 1

getScriptCodeMethod · 0.45

Calls 5

getScriptCodeMethod · 0.95
flushMethod · 0.80
printMethod · 0.45
getClassMethod · 0.45

Tested by

no test coverage detected