public interface FieldType
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableSet<AccessorTemplate> |
generatedAccessorTemplates()
Obtains the templates of the generated Java accessors for a field of this type.
|
com.squareup.javapoet.TypeName |
getTypeName()
Obtains the
TypeName for the field. |
static FieldType |
of(io.spine.code.proto.FieldDeclaration field)
Creates a an instances basing on the type of the field.
|
AccessorTemplate |
primarySetterTemplate()
Obtains the setter prefix for the field.
|
com.squareup.javapoet.TypeName getTypeName()
TypeName
for the field.AccessorTemplate primarySetterTemplate()
com.google.common.collect.ImmutableSet<AccessorTemplate> generatedAccessorTemplates()
static FieldType of(io.spine.code.proto.FieldDeclaration field)