Package de.spraener.nxtgen.java
Class JavaCodeBlock
java.lang.Object
de.spraener.nxtgen.CodeBlockImpl
de.spraener.nxtgen.java.JavaCodeBlock
- All Implemented Interfaces:
CodeBlock
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FilegetOutputFile(String workingDir) protected PrintWritergetPrintWriter(String workingDir) setClassName(String name) voidwriteOutput(String workingDir) Do the output wrtiing into the given working directory.Methods inherited from class de.spraener.nxtgen.CodeBlockImpl
addCodeBlock, checkProtected, getName, getToFileStrategy, println, setToFileStrategy, toCode
-
Constructor Details
-
JavaCodeBlock
-
-
Method Details
-
setClassName
-
writeOutput
Description copied from class:CodeBlockImplDo the output wrtiing into the given working directory. The output file is determined with an changeable ToFileStrategy.- Specified by:
writeOutputin interfaceCodeBlock- Overrides:
writeOutputin classCodeBlockImpl- Parameters:
workingDir- the full qualified path to the working directory.- See Also:
-
getPrintWriter
- Throws:
IOException
-
getOutputFile
-
getSrcDir
-