*
* @return a JBeans object containing the meta data.
*/
private JBeans processBeans(List<BeanAST> beans)
{
JBeans jbeans = new JBeans();
Class<?> beanClass = beanMetaData.getBeanClass();
String fullName = beanClass.getName();
String baseName = BeanMetaData.getBaseClassName(beanClass); // Name without pkg but with parent of inner class
String shortName = beanClass.getSimpleName(); // Short name without parent of inner class
for (BeanAST bean : beans) {
String beanName = bean.getName();
if (shortName.equals(beanName) || baseName.equals(beanName) || fullName.equals(beanName)) {
jbeans.add( processBean(bean) );
}
}
return jbeans;
}