public class CodeFormatter extends Object
| Constructor and Description |
|---|
CodeFormatter() |
| Modifier and Type | Method and Description |
|---|---|
static void |
dumpCodeComment(Iterator<String> description,
BufferedWriter out,
String indent) |
static void |
dumpCodeComment(Iterator<String> description,
StringBuffer out,
String indent) |
static void |
dumpCodeComment(String comment,
BufferedWriter out,
String indent)
This function dumps the description of a class as a code comment.
|
static void |
dumpCodeComment(String comment,
StringBuffer out,
String indent)
This function dumps the description of a class as a code comment.
|
static String |
foldFullyQualified(String fullyQualified,
int maxLength)
Splits a fully qualified class name at dot boundaries up to the maxLength.
|
static String |
getTheClass(String fullyQualified)
Takes a fully qualified class name and returns just the class name portion.
|
public static void dumpCodeComment(String comment, BufferedWriter out, String indent) throws IOException
comment - The comment to be writtenout - The output buffer.indent - The indent string.IOExceptionpublic static void dumpCodeComment(String comment, StringBuffer out, String indent)
comment - The comment to be writtenout - The output buffer.indent - The indent string.IOExceptionpublic static String getTheClass(String fullyQualified)
fullyQualified - public static String foldFullyQualified(String fullyQualified, int maxLength)
fullyQualified - maxLength - public static void dumpCodeComment(Iterator<String> description, StringBuffer out, String indent)
public static void dumpCodeComment(Iterator<String> description, BufferedWriter out, String indent) throws IOException
IOExceptionCopyright © 2023. All rights reserved.