java.lang.Object
io.github.mmm.bean.generator.BeanMethodContainer
- Direct Known Subclasses:
BeanMethodContainerGetter,BeanMethodContainerProperty,BeanMethodContainerSetter
Wrapper for a
Method of a WritableBean.- Since:
- 1.0.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Class<?> booleanisSpecialized(BeanMethodContainer other) static BeanMethodContainervoidWrites the method.protected abstract voidWrites the method body (implementation).protected voidwriteParameters(Writer writer) Writes the method parameters.
-
Field Details
-
method
- See Also:
-
propertyName
- See Also:
-
-
Constructor Details
-
BeanMethodContainer
The constructor.- Parameters:
method- themethod.propertyName- theproperty name.
-
-
Method Details
-
write
Writes the method.- Parameters:
writer- theWriter.- Throws:
IOException- on error.
-
writeParameters
Writes the method parameters.- Parameters:
writer- theWriter.- Throws:
IOException- on error.
-
writeBody
Writes the method body (implementation).- Parameters:
writer- theWriter.- Throws:
IOException- on error.
-
getMethod
- Returns:
- the underlying
beanMethod.
-
getPropertyName
- Returns:
- property the name of the property handled by this method.
-
getParameterName
- Returns:
- property the name of the property handled by this method.
-
getPropertyType
- Returns:
- the
Classreflecting the {ReadablePropertytype of the property value(and not thepropertyitself).
-
of
- Parameters:
method- theMethodto introspect.- Returns:
- the corresponding
BeanMethodContainerornullif not aBeanMethodContainer(to implement).
-
isSpecialized
- Parameters:
other- theBeanMethodContainerto compare.- Returns:
trueifthisBeanMethodContaineris more specialized than the given one (e.g. it overrides the given method),falseotherwise.
-