Class VarargArgumentSetterEmitter

java.lang.Object
com.atlassian.bamboo.specs.codegen.emitters.fragment.VarargArgumentSetterEmitter
All Implemented Interfaces:
com.atlassian.bamboo.specs.api.codegen.CodeEmitter<Iterable<Object>>

public class VarargArgumentSetterEmitter extends Object implements com.atlassian.bamboo.specs.api.codegen.CodeEmitter<Iterable<Object>>
Default code generator for any Iterable field of EntityProperties instance.
  • Constructor Details

    • VarargArgumentSetterEmitter

      public VarargArgumentSetterEmitter(String methodName)
  • Method Details

    • emitCode

      @NotNull public @NotNull String emitCode(@NotNull @NotNull com.atlassian.bamboo.specs.api.codegen.CodeGenerationContext context, @NotNull @NotNull Iterable<Object> iterable) throws com.atlassian.bamboo.specs.api.codegen.CodeGenerationException
      Generates invocation of a setter method with a variable length argument list.
      Specified by:
      emitCode in interface com.atlassian.bamboo.specs.api.codegen.CodeEmitter<Iterable<Object>>
      Throws:
      com.atlassian.bamboo.specs.api.codegen.CodeGenerationException