Package de.spraener.nxtgen
Class GroovyCodeBlockImpl
java.lang.Object
de.spraener.nxtgen.CodeBlockImpl
de.spraener.nxtgen.GroovyCodeBlockImpl
- All Implemented Interfaces:
CodeBlock
This CodeBlock implements a bridge to groovy generator templates. It takes a name,
a ModelElement and a URL to the graoovy script that generates the output.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class de.spraener.nxtgen.CodeBlockImpl
addCodeBlock, checkProtected, getName, getToFileStrategy, println, setToFileStrategy, writeOutput
-
Constructor Details
-
GroovyCodeBlockImpl
-
-
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.
-