use of net.jangaroo.jooc.AnalyzeContext 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);
}
Aggregations