Module io.github.mmm.bean.generator
Package io.github.mmm.bean.generator
Class BeanMethodContainerSetter
java.lang.Object
io.github.mmm.bean.generator.BeanMethodContainer
io.github.mmm.bean.generator.BeanMethodContainerSetter
BeanMethodContainer for a regular setter method.- Since:
- 1.0.0
-
Field Summary
Fields inherited from class io.github.mmm.bean.generator.BeanMethodContainer
method, propertyName -
Constructor Summary
ConstructorsConstructorDescriptionBeanMethodContainerSetter(Method method, String propertyName) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionClass<?>protected voidWrites the method body (implementation).protected voidwriteParameters(Writer writer) Writes the method parameters.Methods inherited from class io.github.mmm.bean.generator.BeanMethodContainer
getMethod, getParameterName, getPropertyName, isSpecialized, of, write
-
Constructor Details
-
BeanMethodContainerSetter
The constructor.- Parameters:
method- themethod.propertyName- theproperty name.
-
-
Method Details
-
writeBody
Description copied from class:BeanMethodContainerWrites the method body (implementation).- Specified by:
writeBodyin classBeanMethodContainer- Parameters:
writer- theWriter.- Throws:
IOException- on error.
-
writeParameters
Description copied from class:BeanMethodContainerWrites the method parameters.- Overrides:
writeParametersin classBeanMethodContainer- Parameters:
writer- theWriter.- Throws:
IOException- on error.
-
getPropertyType
- Specified by:
getPropertyTypein classBeanMethodContainer- Returns:
- the
Classreflecting the {ReadablePropertytype of the property value(and not thepropertyitself).
-