Package org.jctools.queues.util
Class GeneratorUtils
- java.lang.Object
-
- org.jctools.queues.util.GeneratorUtils
-
public class GeneratorUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
INDENT_LEVEL
-
Constructor Summary
Constructors Constructor Description GeneratorUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> T
buildGenerator(java.lang.Class<? extends T> generatorClass, java.lang.String fileName)
Build a generator instance of the given class with the given file name.static void
cleanupPaddingComments(com.github.javaparser.ast.CompilationUnit cu)
Remove padding fields from the given class.static java.lang.String
formatMultilineJavadoc(int indent, java.lang.String... lines)
Format a multiline javadoc comment with the given lines and indentation level.static void
removePaddingFields(com.github.javaparser.ast.body.ClassOrInterfaceDeclaration node)
Remove padding fields from the given class.static void
runJCToolsGenerator(java.lang.Class<? extends JCToolsGenerator> generatorClass, java.lang.String[] args)
-
-
-
Field Detail
-
INDENT_LEVEL
protected static final java.lang.String INDENT_LEVEL
- See Also:
- Constant Field Values
-
-
Method Detail
-
cleanupPaddingComments
public static void cleanupPaddingComments(com.github.javaparser.ast.CompilationUnit cu)
Remove padding fields from the given class.
-
removePaddingFields
public static void removePaddingFields(com.github.javaparser.ast.body.ClassOrInterfaceDeclaration node)
Remove padding fields from the given class.
-
buildGenerator
public static <T> T buildGenerator(java.lang.Class<? extends T> generatorClass, java.lang.String fileName) throws java.lang.Exception
Build a generator instance of the given class with the given file name.- Throws:
java.lang.Exception
-
formatMultilineJavadoc
public static java.lang.String formatMultilineJavadoc(int indent, java.lang.String... lines)
Format a multiline javadoc comment with the given lines and indentation level.
-
runJCToolsGenerator
public static void runJCToolsGenerator(java.lang.Class<? extends JCToolsGenerator> generatorClass, java.lang.String[] args) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-