Module io.github.mmm.bean.generator
Package io.github.mmm.bean.generator
Class BeanMetadataContainerClass
java.lang.Object
io.github.mmm.bean.generator.BeanMetadataContainer
io.github.mmm.bean.generator.BeanMetadataContainerClass
- Since:
- 1.0.0
-
Field Summary
Fields inherited from class io.github.mmm.bean.generator.BeanMetadataContainer
beanType, virtual -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisNonAbstractClass(Class<?> type) static BeanMetadataContainerClassvoidwriteInstantiation(Writer writer, String beanClassVariable) Writes the entire Java file.Methods inherited from class io.github.mmm.bean.generator.BeanMetadataContainer
getBeanType, isVirtual
-
Method Details
-
writeInstantiation
Description copied from class:BeanMetadataContainerWrites the entire Java file.- Specified by:
writeInstantiationin classBeanMetadataContainer- Parameters:
writer- theWriter.beanClassVariable- the variable of theBeanClassto potentially pass to theConstructor.- Throws:
IOException- on error.
-
isNonAbstractClass
-
of
public static BeanMetadataContainerClass of(Class<? extends io.github.mmm.bean.WritableBean> beanClass) - Parameters:
beanClass- theClassreflecting theWritableBeanto get metadata for.- Returns:
- the
BeanMetadataContainerInterfacefor the givenClassornullif not anon-abstract classor not having public non-arg orBeanClassconstructor.
-