public final class JavadocFormatter extends Object
This stateless class reads tokens from the stateful lexer and translates them to "requests" and "writes" to the stateful writer. It also munges tokens into "standardized" forms. Finally, it performs postprocessing to convert the written Javadoc to a one-liner if possible or to leave a single blank line if it's empty.
Modifier and Type | Method and Description |
---|---|
static String |
formatJavadoc(String input,
int blockIndent,
JavaFormatterOptions options)
Formats the given Javadoc comment, which must start with ∕✱✱ and end with ✱∕.
|
public static String formatJavadoc(String input, int blockIndent, JavaFormatterOptions options)
Copyright © 2015–2017 Google Inc.. All rights reserved.