public class OutputUtilities
extends java.lang.Object
| 限定符和类型 | 方法和说明 |
|---|---|
static java.util.Set<java.lang.String> |
calculateImports(java.util.Set<FullyQualifiedJavaType> importedTypes)
returns a unique set of "import xxx;" Strings for the set of types.
|
static void |
javaIndent(java.lang.StringBuilder sb,
int indentLevel)
Utility method that indents the buffer by the default amount for Java
(four spaces per indent level).
|
static void |
newLine(java.lang.StringBuilder sb)
Utility method.
|
static void |
xmlIndent(java.lang.StringBuilder sb,
int indentLevel)
Utility method that indents the buffer by the default amount for XML (two
spaces per indent level).
|
public static void javaIndent(java.lang.StringBuilder sb,
int indentLevel)
sb - a StringBuilder to append toindentLevel - the required indent levelpublic static void xmlIndent(java.lang.StringBuilder sb,
int indentLevel)
sb - a StringBuilder to append toindentLevel - the required indent levelpublic static void newLine(java.lang.StringBuilder sb)
sb - the StringBuilder to be appended topublic static java.util.Set<java.lang.String> calculateImports(java.util.Set<FullyQualifiedJavaType> importedTypes)
importedTypes - the imported typesCopyright © 2018. All Rights Reserved.