Documentation of 'org.encog.app.generate.generators.AbstractGenerator' Java class
AbstractGenerator
org.encog.app.generate.generators

Class AbstractGenerator

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int INDENT_SPACES
      Default number of indent spaces.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void addBreak()
      Add a line break;
      void addInclude(java.lang.String str)
      Add an include.
      void addLine(java.lang.String line)
      Add a line of code, indent proper.
      void addToBeginning(java.lang.String str)
      Add to the beginning of the file.
      java.lang.String getContents()
      Get the contents.
      java.util.Set<java.lang.String> getIncludes() 
      void indentLine(java.lang.String line)
      Indent a line.
      void unIndentLine(java.lang.String line)
      Unindent and then add this line.
      void writeContents(java.io.File targetFile)
      Write the contents to the specified file.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • INDENT_SPACES

        public static final int INDENT_SPACES
        Default number of indent spaces.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractGenerator

        public AbstractGenerator()
    • Method Detail

      • addBreak

        public void addBreak()
        Add a line break;
      • addInclude

        public void addInclude(java.lang.String str)
        Add an include.
        Parameters:
        str - The include to add.
      • addLine

        public void addLine(java.lang.String line)
        Add a line of code, indent proper.
        Parameters:
        line - The line of code to add.
      • addToBeginning

        public void addToBeginning(java.lang.String str)
        Add to the beginning of the file. This is good for includes.
        Parameters:
        str - the string to insert
      • getIncludes

        public java.util.Set<java.lang.String> getIncludes()
        Returns:
        The includes.
      • indentLine

        public void indentLine(java.lang.String line)
        Indent a line. The line after dis one will be indented.
        Parameters:
        line - The line to indent.
      • unIndentLine

        public void unIndentLine(java.lang.String line)
        Unindent and then add this line.
        Parameters:
        line - The line to add.
      • writeContents

        public void writeContents(java.io.File targetFile)
        Write the contents to the specified file.
        Specified by:
        writeContents in interface LanguageSpecificGenerator
        Parameters:
        targetFile - the output file

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.