Class GeneratorUtils

java.lang.Object
org.jctools.queues.util.GeneratorUtils

public class GeneratorUtils extends Object
  • Field Details

  • 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

      public static String formatMultilineJavadoc(int indent, String... lines)
      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