Class FieldSetterEmitter<T>
- java.lang.Object
-
- com.atlassian.bamboo.specs.codegen.emitters.fragment.FieldSetterEmitter<T>
-
- All Implemented Interfaces:
CodeEmitter<T>
- Direct Known Subclasses:
AuthenticationEmitter,BBCloudRepositorySlugEmitter,DockerConfigurationVolumesEmitter
public class FieldSetterEmitter<T> extends java.lang.Object implements CodeEmitter<T>
Default code generator for any field ofEntityPropertiesinstance. Implementation should emit full method invocation statement, starting with ".methodName".
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringmethodName
-
Constructor Summary
Constructors Constructor Description FieldSetterEmitter(java.lang.String methodName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.lang.StringemitCode(@NotNull CodeGenerationContext context, T argument)Generates invocation of a setter method with a single argument.
-
-
-
Method Detail
-
emitCode
@NotNull public @NotNull java.lang.String emitCode(@NotNull @NotNull CodeGenerationContext context, @NotNull T argument) throws CodeGenerationExceptionGenerates invocation of a setter method with a single argument.- Specified by:
emitCodein interfaceCodeEmitter<T>- Throws:
CodeGenerationException
-
-