Class CodeTargetCodeBlockAdapter

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

public class CodeTargetCodeBlockAdapter extends CodeBlockImpl
  • Constructor Details

    • CodeTargetCodeBlockAdapter

      public CodeTargetCodeBlockAdapter(CodeTarget codeTarget)
      Create a new CodeBlock for the given codeTarget.
      Parameters:
      codeTarget - a CodeTarget this adapter operates on.
  • 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.