- java.lang.Object
-
- io.github.mmm.bean.generator.BeanMetadata
-
- Direct Known Subclasses:
BeanClassMetadata,BeanInterfaceMetadata
public abstract class BeanMetadata extends Object
Collector for introspection data ofbeans.- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description protected Class<? extends WritableBean>beanTypeprotected booleanvirtual
-
Constructor Summary
Constructors Modifier Constructor Description protectedBeanMetadata(Class<? extends WritableBean> beanClass)The constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Class<? extends WritableBean>getBeanType()booleanisVirtual()abstract voidwriteInstantiation(Writer writer, String beanClassVariable)Writes the entire Java file.
-
-
-
Field Detail
-
beanType
protected final Class<? extends WritableBean> beanType
- See Also:
getBeanType()
-
virtual
protected final boolean virtual
- See Also:
isVirtual()
-
-
Constructor Detail
-
BeanMetadata
protected BeanMetadata(Class<? extends WritableBean> beanClass)
The constructor.- Parameters:
beanClass- thebean type.
-
-
Method Detail
-
getBeanType
public Class<? extends WritableBean> getBeanType()
- Returns:
- the
Classreflecting theWritableBeanthis metadata is about.
-
isVirtual
public boolean isVirtual()
- Returns:
trueif thebean typeextendsVirtualBean.
-
writeInstantiation
public abstract void writeInstantiation(Writer writer, String beanClassVariable) throws IOException
Writes the entire Java file.- Parameters:
writer- theWriter.beanClassVariable- the variable of theBeanClassto potentially pass to theConstructor.- Throws:
IOException- on error.
-
-