Search in sources :

Example 1 with CompilationUnit

use of net.jangaroo.jooc.CompilationUnit in project jangaroo-tools by CoreMedia.

the class JoodocTool method getRootDocImpl.

public RootDocImpl getRootDocImpl(String docLocale, String encoding, ModifierFilter showAccess, List list, List optionList, boolean breakiterator, List list2, List list3, boolean flag) {
    ListBuffer listbuffer = new ListBuffer();
    ListBuffer listbuffer1 = new ListBuffer();
    ListBuffer listbuffer2 = new ListBuffer();
    for (List list4 = list; list4.nonEmpty(); list4 = list4.tail) {
        String s2 = (String) list4.head;
        if (s2.endsWith(JS2_SUFFIX) && (new File(s2)).exists()) {
            messager.notice("main.Loading_source_file", s2);
            processSource(s2);
            continue;
        }
        if (isValidPackageName(s2)) {
            listbuffer = listbuffer.append(s2);
            continue;
        }
        if (s2.endsWith(JS2_SUFFIX))
            messager.error(null, "main.file_not_found", s2);
        else
            messager.error(null, "main.illegal_package_name", s2);
    }
    ArrayList units = getCompilationUnits();
    for (int i = 0; i < units.size(); i++) {
        CompilationUnit unit = (CompilationUnit) units.get(i);
        unit.analyze(new AnalyzeContext());
    // searchSubPackages(list2, listbuffer, list3);
    //for(List list5 = listbuffer.toList(); list5.nonEmpty(); list5 = list5.tail)
    //    parsePackageClasses((String)list5.head, listbuffer2, list3);
    //
    }
    return new RootDocImpl(new Context(getCompilationUnits()), optionList);
}
Also used : CompilationUnit(net.jangaroo.jooc.CompilationUnit) AnalyzeContext(net.jangaroo.jooc.AnalyzeContext) AnalyzeContext(net.jangaroo.jooc.AnalyzeContext) ListBuffer(com.sun.tools.javac.util.ListBuffer) ArrayList(java.util.ArrayList) List(com.sun.tools.javac.util.List) ArrayList(java.util.ArrayList) File(java.io.File)

Aggregations

List (com.sun.tools.javac.util.List)1 ListBuffer (com.sun.tools.javac.util.ListBuffer)1 File (java.io.File)1 ArrayList (java.util.ArrayList)1 AnalyzeContext (net.jangaroo.jooc.AnalyzeContext)1 CompilationUnit (net.jangaroo.jooc.CompilationUnit)1