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
Default code generator for any field of
EntityProperties
instance.
Implementation should emit full method invocation statement, starting with ".methodName".-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull String
emitCode
(@NotNull CodeGenerationContext context, T argument) Generates invocation of a setter method with a single argument.
-
Field Details
-
methodName
-
-
Constructor Details
-
FieldSetterEmitter
-
-
Method Details
-
emitCode
@NotNull public @NotNull String emitCode(@NotNull @NotNull CodeGenerationContext context, @NotNull T argument) throws CodeGenerationException Generates invocation of a setter method with a single argument.- Specified by:
emitCode
in interfaceCodeEmitter<T>
- Throws:
CodeGenerationException
-