Package de.spraener.nxtgen.target
Class CodeTargetCodeBlockAdapter
java.lang.Object
de.spraener.nxtgen.CodeBlockImpl
de.spraener.nxtgen.target.CodeTargetCodeBlockAdapter
- All Implemented Interfaces:
CodeBlock
-
Constructor Summary
ConstructorsConstructorDescriptionCodeTargetCodeBlockAdapter(CodeTarget codeTarget) Create a new CodeBlock for the given codeTarget. -
Method Summary
Methods inherited from class de.spraener.nxtgen.CodeBlockImpl
addCodeBlock, checkProtected, getName, getToFileStrategy, println, setToFileStrategy, writeOutput
-
Constructor Details
-
CodeTargetCodeBlockAdapter
Create a new CodeBlock for the given codeTarget.- Parameters:
codeTarget- a CodeTarget this adapter operates on.
-
-
Method Details
-
toCode
Description copied from class:CodeBlockImplWrite your and the code of all contained codeBlocks to an output string. The implementation calls toCode on all containing CodeBlocks and append them to one long output string.- Specified by:
toCodein interfaceCodeBlock- Overrides:
toCodein classCodeBlockImpl- Returns:
- a string with the output of all contained CodeBlocks.
-