Class VarargArgumentSetterEmitter

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull java.lang.String emitCode​(@NotNull com.atlassian.bamboo.specs.api.codegen.CodeGenerationContext context, @NotNull java.lang.Iterable<java.lang.Object> iterable)
      Generates invocation of a setter method with a variable length argument list.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VarargArgumentSetterEmitter

        public VarargArgumentSetterEmitter​(java.lang.String methodName)
    • Method Detail

      • emitCode

        @NotNull
        public @NotNull java.lang.String emitCode​(@NotNull
                                                  @NotNull com.atlassian.bamboo.specs.api.codegen.CodeGenerationContext context,
                                                  @NotNull
                                                  @NotNull java.lang.Iterable<java.lang.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<java.lang.Iterable<java.lang.Object>>
        Throws:
        com.atlassian.bamboo.specs.api.codegen.CodeGenerationException