Class GroovyCodeBlockImpl

java.lang.Object
de.spraener.nxtgen.CodeBlockImpl
de.spraener.nxtgen.GroovyCodeBlockImpl
All Implemented Interfaces:
CodeBlock

public class GroovyCodeBlockImpl extends CodeBlockImpl
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 Details

  • Method Details

    • toCode

      public String toCode()
      Description copied from class: CodeBlockImpl
      Write 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:
      toCode in interface CodeBlock
      Overrides:
      toCode in class CodeBlockImpl
      Returns:
      a string with the output of all contained CodeBlocks.