|
|
@ -72,9 +72,6 @@ public class ClassAnalyzer implements Analyzer { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void analyze() { |
|
|
|
public void analyze() { |
|
|
|
int numFields = 0; |
|
|
|
|
|
|
|
int i = 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FieldInfo[] finfos = clazz.getFields(); |
|
|
|
FieldInfo[] finfos = clazz.getFields(); |
|
|
|
MethodInfo[] minfos = clazz.getMethods(); |
|
|
|
MethodInfo[] minfos = clazz.getMethods(); |
|
|
|
if (finfos == null) { |
|
|
|
if (finfos == null) { |
|
|
@ -136,12 +133,15 @@ public class ClassAnalyzer implements Analyzer { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
String modif = Modifier.toString(clazz.getModifiers() |
|
|
|
int modifiedModifiers = clazz.getModifiers() & ~Modifier.SYNCHRONIZED; |
|
|
|
& ~Modifier.SYNCHRONIZED); |
|
|
|
if (clazz.isInterface()) |
|
|
|
|
|
|
|
modifiedModifiers &= ~Modifier.ABSTRACT; |
|
|
|
|
|
|
|
String modif = Modifier.toString(modifiedModifiers); |
|
|
|
if (modif.length() > 0) |
|
|
|
if (modif.length() > 0) |
|
|
|
writer.print(modif + " "); |
|
|
|
writer.print(modif + " "); |
|
|
|
writer.print(clazz.isInterface() |
|
|
|
/*interface is in modif*/ |
|
|
|
? ""/*interface is in modif*/ : "class "); |
|
|
|
if (!clazz.isInterface()) |
|
|
|
|
|
|
|
writer.print("class "); |
|
|
|
writer.println(imports.getClassString(clazz)); |
|
|
|
writer.println(imports.getClassString(clazz)); |
|
|
|
writer.tab(); |
|
|
|
writer.tab(); |
|
|
|
ClassInfo superClazz = clazz.getSuperclass(); |
|
|
|
ClassInfo superClazz = clazz.getSuperclass(); |
|
|
|