Class AbstractGenerator

    • Field Detail

      • processingEnv

        protected final javax.annotation.processing.ProcessingEnvironment processingEnv
      • fileName

        private final java.lang.String fileName
      • disableKey

        private final java.lang.String disableKey
    • Constructor Detail

      • AbstractGenerator

        public AbstractGenerator​(javax.annotation.processing.ProcessingEnvironment processingEnv,
                                 java.lang.String fileName,
                                 java.lang.String disableKey)
    • Method Detail

      • generateConfig

        protected abstract java.lang.String generateConfig​(CommandLine.Model.CommandSpec[] commands)
                                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • enabled

        protected boolean enabled()
      • fileName

        protected java.lang.String fileName()
      • createRelativePath

        protected java.lang.String createRelativePath​(java.lang.String fileName)
      • generateConfig

        protected java.lang.String generateConfig​(java.util.Map<javax.lang.model.element.Element,​CommandLine.Model.CommandSpec> allCommands)
                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • logInfo

        protected void logInfo​(java.lang.String msg)
        Prints a compile-time NOTE message.
        Parameters:
        msg - the info message
      • fatalError

        protected void fatalError​(java.lang.String msg)
        Prints a compile-time error message prefixed with "FATAL ERROR".
        Parameters:
        msg - the error message with optional format specifiers