@Override public void h1(@javax.annotation.Nonnull final CharSequence fmt, final Object... args) { CharSequence anchorId = anchorId(); @javax.annotation.Nonnull CharSequence msg = format(fmt, args); toc.add(String.format("1. [%s](#%s)", msg, anchorId)); out("# " + anchor(anchorId) + msg); }
@Override public void p(final CharSequence fmt, final Object... args) { out(anchor(anchorId()).toString() + fmt + "\n", args); }
@Override public void h3(@javax.annotation.Nonnull final CharSequence fmt, final Object... args) { CharSequence anchorId = anchorId(); @javax.annotation.Nonnull CharSequence msg = format(fmt, args); toc.add(String.format(" 1. [%s](#%s)", msg, anchorId)); out("### " + anchor(anchorId) + fmt, args); }
@Override public void h2(@javax.annotation.Nonnull final CharSequence fmt, final Object... args) { CharSequence anchorId = anchorId(); @javax.annotation.Nonnull CharSequence msg = format(fmt, args); toc.add(String.format(" 1. [%s](#%s)", msg, anchorId)); out("## " + anchor(anchorId) + fmt, args); }
@Override public void p(final CharSequence fmt, final Object... args) { out(anchor(anchorId()).toString() + fmt + "\n", args); }
@Override public void h1(@javax.annotation.Nonnull final CharSequence fmt, final Object... args) { CharSequence anchorId = anchorId(); @javax.annotation.Nonnull CharSequence msg = format(fmt, args); toc.add(String.format("1. [%s](#%s)", msg, anchorId)); out("# " + anchor(anchorId) + msg); }
@Override public void h2(@javax.annotation.Nonnull final CharSequence fmt, final Object... args) { CharSequence anchorId = anchorId(); @javax.annotation.Nonnull CharSequence msg = format(fmt, args); toc.add(String.format(" 1. [%s](#%s)", msg, anchorId)); out("## " + anchor(anchorId) + fmt, args); }
@Override public void h3(@javax.annotation.Nonnull final CharSequence fmt, final Object... args) { CharSequence anchorId = anchorId(); @javax.annotation.Nonnull CharSequence msg = format(fmt, args); toc.add(String.format(" 1. [%s](#%s)", msg, anchorId)); out("### " + anchor(anchorId) + fmt, args); }
out(anchor(anchorId()) + "Code from [%s:%s](%s#L%s) executed in %.2f seconds (%.3f gc): ", callingFrame.getFileName(), callingFrame.getLineNumber(), CodeUtil.codeUrl(callingFrame), callingFrame.getLineNumber(), result.obj.seconds(), result.obj.gc_seconds() ); out("```java"); out(" " + sourceCode.replaceAll("\n", "\n ")); out("```"); out(anchor(anchorId()) + "Logging: "); out("```"); out(" " + summary); out("```"); out(""); out(anchor(anchorId()) + "Returns: \n"); String str; boolean escape; out("```"); out(fmt); out("```"); } else { out(fmt); out("\n\n"); if (eval instanceof RuntimeException) { throw ((RuntimeException) result.obj.result);
out(anchor(anchorId()) + "Code from [%s:%s](%s#L%s) executed in %.2f seconds (%.3f gc): ", callingFrame.getFileName(), callingFrame.getLineNumber(), CodeUtil.codeUrl(callingFrame), callingFrame.getLineNumber(), result.obj.seconds(), result.obj.gc_seconds() ); out("```java"); out(" " + sourceCode.replaceAll("\n", "\n ")); out("```"); out(anchor(anchorId()) + "Logging: "); out("```"); out(" " + summary); out("```"); out(""); out(anchor(anchorId()) + "Returns: \n"); String str; boolean escape; out("```"); out(fmt); out("```"); } else { out(fmt); out("\n\n"); if (eval instanceof RuntimeException) { throw ((RuntimeException) result.obj.result);