Class SourceRenderer

    • Constructor Detail

      • SourceRenderer

        public SourceRenderer()
    • Method Detail

      • run

        protected final void run​(java.lang.String[] args)
                          throws java.lang.Exception
        Renders the given source files. The syntax of the command is
          $ java SourceRenderer [options] files 
        For example,
         $ java SourceRenderer -stylesheet mystyle.css -sourcepath test
          -d generated/html acme/foo/SomeClass.java

        Recognized options are

        -format
        the format of the converted output. Recognized monikers are html and text. A fully qualified class name that implements TokenRenderer is allowed. Default is html
        -sourcepath
        the root of the source files. Default is the current directory
        -d
        the root of the generated files. Default is the current directory
        Besides these options, a renderer can accept more options. Any option -someProperty will configure the renderer if a bean-style setter method setSomeProperty(String|boolean|int) is available. See available documentation on the specific renderer.
        Stylesheet file must be under destination directory.
        -stylesheet
        is relative to destination directory.
        Parameters:
        args - command-line arguments.
        Throws:
        java.lang.Exception
      • getDestinationDirectory

        public java.io.File getDestinationDirectory()
      • getSourceDirectory

        public java.io.File getSourceDirectory()
      • registerOptions

        public abstract void registerOptions​(CommandProcessor options)
      • getInputStream

        protected java.io.InputStream getInputStream​(java.io.File srcDir,
                                                     java.lang.String path)
        Gets the input stream.
        Parameters:
        srcDir - the root source directory.
        path - the path to input file.
      • verbose

        protected void verbose​(java.lang.String s)
      • warn

        protected void warn​(java.lang.String s)