Class JavaGRTGenerator.EnumGenerator

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static String generate(EnumModel model) Generates the Java enum source code as a string.
      static File generateToFile(EnumModel model, File outputDir) Generates the Java enum source code and writes it to a file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • generate

         static String generate(EnumModel model)

        Generates the Java enum source code as a string.

        Parameters:
        model - the enum model
        Returns:

        the generated Java source code

      • generateToFile

         static File generateToFile(EnumModel model, File outputDir)

        Generates the Java enum source code and writes it to a file.

        Parameters:
        model - the enum model
        outputDir - the output directory
        Returns:

        the file that was written