Module io.github.mmm.bean.generator
Package io.github.mmm.bean.generator
Class BeanMethodContainerGetter
java.lang.Object
io.github.mmm.bean.generator.BeanMethodContainer
io.github.mmm.bean.generator.BeanMethodContainerGetter
BeanMethodContainer for a regular getter method.- Since:
- 1.0.0
-
Field Summary
Fields inherited from class io.github.mmm.bean.generator.BeanMethodContainer
method, propertyName -
Constructor Summary
ConstructorsConstructorDescriptionBeanMethodContainerGetter(Method method, String propertyName) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionClass<?>protected voidWrites the method body (implementation).Methods inherited from class io.github.mmm.bean.generator.BeanMethodContainer
getMethod, getParameterName, getPropertyName, isSpecialized, of, write, writeParameters
-
Constructor Details
-
BeanMethodContainerGetter
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.
-
getPropertyType
- Specified by:
getPropertyTypein classBeanMethodContainer- Returns:
- the
Classreflecting the {ReadablePropertytype of the property value(and not thepropertyitself).
-