org.encog.app.generate.generators
public abstract class AbstractGenerator extends Object implements ProgramGenerator
Modifier and Type | Field and Description |
---|---|
static int |
INDENT_SPACES
Default number of indent spaces.
|
Constructor and Description |
---|
AbstractGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
addBreak()
Add a line break;
|
void |
addInclude(String str)
Add an include.
|
void |
addLine(String line)
Add a line of code, indent proper.
|
void |
addToBeginning(String str)
Add to the beginning of the file.
|
String |
getContents()
Get the contents.
|
Set<String> |
getIncludes() |
void |
indentLine(String line)
Indent a line.
|
void |
unIndentLine(String line)
Unindent and then add this line.
|
void |
writeContents(File targetFile)
Write the contents to the specified file.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
generate
public static final int INDENT_SPACES
public void addBreak()
public void addInclude(String str)
str
- The include to add.public void addLine(String line)
line
- The line of code to add.public void addToBeginning(String str)
str
- public String getContents()
getContents
in interface LanguageSpecificGenerator
public void indentLine(String line)
line
- The line to indent.public void unIndentLine(String line)
line
- The line to add.public void writeContents(File targetFile)
writeContents
in interface LanguageSpecificGenerator
Copyright © 2014. All Rights Reserved.