}
public void generateClassListJs(PackageElement p, PrintWriter w) throws IOException {
try {
w.printf("setClassList(\"%s\",",p.getQualifiedName());
JsonWriter jw = new JsonWriter(w);
jw.startArray();
for (TypeElement t : pss.getClassElements(p)) {
if(pss.getTrees().getTree(t)==null)
continue; // not a part of the compilation unit
jw.startObject();
jw.property("name",t.getSimpleName());
jw.property("kind",getKindString(t.getKind()));
jw.property("script",t.getQualifiedName().toString().replace('.','/')+".js");
jw.property("access",getAccessLevel(t));
jw.endObject();
}
jw.endArray();
w.println(");");
} finally {
w.close();
}
}