Package com.thoughtworks.qdox.model

Examples of com.thoughtworks.qdox.model.JavaPackage


    return cache.getClasses();
  }
  public void add(JavaClass javaClass) {
    cache.putClassByName(javaClass.getFullyQualifiedName(), javaClass);
   
    JavaPackage jPackage = getPackageByName( javaClass.getPackageName() );
    if(jPackage != null) {
        jPackage.addClass( javaClass );
    }
  }
View Full Code Here



    public void add( JavaPackage jPackage )
    {
        String packageName = jPackage.getName();
        JavaPackage javaPackage = getPackageByName( packageName );
        if ( javaPackage == null ) {
            javaPackage = new JavaPackage( packageName );
            javaPackage.setContext( this );
            packageMap.put( packageName, javaPackage );
        }
        jPackage.setContext( this );
    }
View Full Code Here

        }
        JavaSource source = builder.getSource();
        sources.add(source);
        addClasses(source);

        JavaPackage pkg = context.getPackageByName( source.getPackageName() );
        if (!packages.contains(pkg)) {
            packages.add(pkg);
        }
//        JavaClass[] classes = source.getClasses();
//        for (int i = 0; i < classes.length; i++) {
View Full Code Here

    public JavaPackage getPackageByName( String name )
    {
        if(name != null) {
            Iterator iter = packages.iterator();
            while(iter.hasNext()) {
                JavaPackage pkg = (JavaPackage) iter.next();
                if(name.equals( pkg.getName() )) {
                    return pkg;
                }
            }
        }
        return null;
View Full Code Here

TOP

Related Classes of com.thoughtworks.qdox.model.JavaPackage

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.