- java.lang.Object
-
- io.github.mmm.bean.generator.BeanMethod
-
- io.github.mmm.bean.generator.BeanMethodProperty
-
public class BeanMethodProperty extends BeanMethod
BeanMethodfor a property access method.- Since:
- 1.0.0
-
-
Field Summary
-
Fields inherited from class io.github.mmm.bean.generator.BeanMethod
method, propertyName
-
-
Constructor Summary
Constructors Constructor Description BeanMethodProperty(Method method, String propertyName, Class<?> propertyType)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>getPropertyType()protected voidwriteBody(Writer writer)Writes the method body (implementation).-
Methods inherited from class io.github.mmm.bean.generator.BeanMethod
getMethod, getParameterName, getPropertyName, isSpecialized, of, write, writeParameters
-
-
-
-
Constructor Detail
-
BeanMethodProperty
public BeanMethodProperty(Method method, String propertyName, Class<?> propertyType)
The constructor.- Parameters:
method- themethod.propertyName- theproperty name.propertyType- theproperty type.
-
-
Method Detail
-
writeBody
protected void writeBody(Writer writer) throws IOException
Description copied from class:BeanMethodWrites the method body (implementation).- Specified by:
writeBodyin classBeanMethod- Parameters:
writer- theWriter.- Throws:
IOException- on error.
-
getPropertyType
public Class<?> getPropertyType()
- Specified by:
getPropertyTypein classBeanMethod- Returns:
- the
Classreflecting the {ReadablePropertytype of the property value(and not thepropertyitself).
-
-