- java.lang.Object
-
- io.github.mmm.bean.generator.BeanMetadata
-
- io.github.mmm.bean.generator.BeanClassMetadata
-
public class BeanClassMetadata extends BeanMetadata
-
-
Field Summary
-
Fields inherited from class io.github.mmm.bean.generator.BeanMetadata
beanType, virtual
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanisNonAbstractClass(Class<?> type)static BeanClassMetadataof(Class<? extends WritableBean> beanClass)voidwriteInstantiation(Writer writer, String beanClassVariable)Writes the entire Java file.-
Methods inherited from class io.github.mmm.bean.generator.BeanMetadata
getBeanType, isVirtual
-
-
-
-
Method Detail
-
writeInstantiation
public void writeInstantiation(Writer writer, String beanClassVariable) throws IOException
Description copied from class:BeanMetadataWrites the entire Java file.- Specified by:
writeInstantiationin classBeanMetadata- Parameters:
writer- theWriter.beanClassVariable- the variable of theBeanClassto potentially pass to theConstructor.- Throws:
IOException- on error.
-
isNonAbstractClass
public static boolean isNonAbstractClass(Class<?> type)
-
of
public static BeanClassMetadata of(Class<? extends WritableBean> beanClass)
- Parameters:
beanClass- theClassreflecting theWritableBeanto get metadata for.- Returns:
- the
BeanInterfaceMetadatafor the givenClassornullif not anon-abstract classor not having public non-arg orBeanClassconstructor.
-
-