Package org.ftlines.metagen.eclipse.model

Examples of org.ftlines.metagen.eclipse.model.Bean


      this.errors = errors;
    }

    private void visitBean(ITypeBinding type) {

      Bean bean = new Bean(getVisibility(type.getModifiers()), type.getQualifiedName());
      beans.push(bean);
      if (!populateBean(type, bean)) {
        return;
      }

      // check if we need to extend a super meta class
      ITypeBinding cursor = type.getSuperclass();
      while (cursor != null) {
        Bean superbean = new Bean(getVisibility(cursor.getModifiers()), cursor.getQualifiedName());
        if (!populateBean(cursor, superbean)) {
          break;
        }
        if (superbean.willGenerateMeta()) {
          String supername = getMetaSuperName(cursor);
          bean.setSuperclass(supername);
          break;
        }
        cursor = cursor.getSuperclass();
View Full Code Here


      return true;
    }

    private void endVisitBean() {
      Bean bean = beans.pop();

      if (bean.getVisibility() == Visibility.PRIVATE) {
        return;
      }

      // TODO this check should be moved into Bean - Bean.isEmpty()
      if (bean.willGenerateMeta()) {
        if (beans.size() > 0) {
          beans.peek().add(bean);
        } else {
          BeanUnit.this.add(bean);
        }
View Full Code Here

TOP

Related Classes of org.ftlines.metagen.eclipse.model.Bean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.