Package org.jctools.queues.util
Class GeneratorUtils
java.lang.Object
org.jctools.queues.util.GeneratorUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
buildGenerator
(Class<? extends T> generatorClass, 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 String
formatMultilineJavadoc
(int indent, 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
(Class<? extends JCToolsGenerator> generatorClass, String[] args)
-
Field Details
-
INDENT_LEVEL
- See Also:
-
-
Constructor Details
-
GeneratorUtils
public GeneratorUtils()
-
-
Method Details
-
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(Class<? extends T> generatorClass, String fileName) throws Exception Build a generator instance of the given class with the given file name.- Throws:
Exception
-
formatMultilineJavadoc
Format a multiline javadoc comment with the given lines and indentation level. -
runJCToolsGenerator
public static void runJCToolsGenerator(Class<? extends JCToolsGenerator> generatorClass, String[] args) throws Exception - Throws:
Exception
-