Package de.spraener.nxtgen
Class SimpleStringCodeBlock
java.lang.Object
de.spraener.nxtgen.SimpleStringCodeBlock
- All Implemented Interfaces:
CodeBlock
- Direct Known Subclasses:
IndentationCodeBlock,SimpleFileWriterCodeBlock
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCodeBlock(CodeBlock subBlock) add a CodeBlock to this code block.getName()get the Name of this code blockvoidAdd a single line to the code blockvoidsetToFileStrategy(ToFileStrategy strategy) toCode()Transform the CodeBlock to source code.voidwriteOutput(String workingDir)
-
Constructor Details
-
SimpleStringCodeBlock
-
-
Method Details
-
toCode
Description copied from interface:CodeBlockTransform the CodeBlock to source code. -
println
Description copied from interface:CodeBlockAdd a single line to the code block -
addCodeBlock
Description copied from interface:CodeBlockadd a CodeBlock to this code block.- Specified by:
addCodeBlockin interfaceCodeBlock- Parameters:
subBlock- a code block can contain other codeblocks. it is inserted at the current postion/line
-
getName
Description copied from interface:CodeBlockget the Name of this code block -
writeOutput
- Specified by:
writeOutputin interfaceCodeBlock
-
setToFileStrategy
- Specified by:
setToFileStrategyin interfaceCodeBlock
-