public class OutputUtilities extends Object
Modifier and Type | Method and Description |
---|---|
static Set<String> |
calculateImports(Set<FullyQualifiedJavaType> importedTypes)
returns a unique set of "import xxx;" Strings for the set of types
|
static void |
javaIndent(StringBuilder sb,
int indentLevel)
Utility method that indents the buffer by the default amount for Java
(four spaces per indent level).
|
static void |
newLine(StringBuilder sb)
Utility method.
|
static void |
xmlIndent(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(StringBuilder sb, int indentLevel)
sb
- a StringBuilder to append toindentLevel
- the required indent levelpublic static void xmlIndent(StringBuilder sb, int indentLevel)
sb
- a StringBuilder to append toindentLevel
- the required indent levelpublic static void newLine(StringBuilder sb)
sb
- the StringBuilder to be appended topublic static Set<String> calculateImports(Set<FullyQualifiedJavaType> importedTypes)
importedTypes
- Copyright © 2010–2018 MyBatis.org. All rights reserved.