Package com.sun.codemodel

Examples of com.sun.codemodel.JClassContainer


     */
    public final JPackage[] getUsedPackages( Aspect aspect ) {
        Set<JPackage> s = new TreeSet<JPackage>();

        for( CClassInfo bean : model.beans().values() ) {
            JClassContainer cont = getContainer(bean.parent(),aspect);
            if(cont.isPackage())
                s.add( (JPackage)cont );
        }

        for( CElementInfo e : model.getElementMappings(null).values() ) {
            // at the first glance you might think we should be iterating all elements,
View Full Code Here


   * Move the given class to his grandparent (either class or package).
   */
  @SuppressWarnings("unchecked")
  private void moveClassLevelUp(Outline outline, JDefinedClass clazz) {
    // Modify the container so it now refers the class. Container can be a class or package.
    JClassContainer container = clazz.parentContainer().parentContainer();

    // FIXME: Pending https://java.net/jira/browse/JAXB-957
    if (container.isClass()) {
      // Element class should be added as its container child:
      JDefinedClass parentClass = (JDefinedClass) container;

      writeSummary("\tMoving inner class " + clazz.fullName() + " to class " + parentClass.fullName());

View Full Code Here

     */
    public final JPackage[] getUsedPackages( Aspect aspect ) {
        Set<JPackage> s = new TreeSet<JPackage>();

        for( CClassInfo bean : model.beans().values() ) {
            JClassContainer cont = getContainer(bean.parent(),aspect);
            if(cont.isPackage())
                s.add( (JPackage)cont );
        }

        for( CElementInfo e : model.getElementMappings(null).values() ) {
            // at the first glance you might think we should be iterating all elements,
View Full Code Here

     */
    public final JPackage[] getUsedPackages(Aspect aspect) {
        Set<JPackage> s = new TreeSet<JPackage>();

        for (CClassInfo bean : model.beans().values()) {
            JClassContainer cont = getContainer(bean.parent(), aspect);
            if (cont.isPackage()) {
                s.add((JPackage) cont);
            }
        }

        for (CElementInfo e : model.getElementMappings(null).values()) {
View Full Code Here

     */
    public final JPackage[] getUsedPackages(Aspect aspect) {
        Set<JPackage> s = new TreeSet<JPackage>();

        for (CClassInfo bean : model.beans().values()) {
            JClassContainer cont = getContainer(bean.parent(), aspect);
            if (cont.isPackage()) {
                s.add((JPackage) cont);
            }
        }

        for (CElementInfo e : model.getElementMappings(null).values()) {
View Full Code Here

TOP

Related Classes of com.sun.codemodel.JClassContainer

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.