![]() |
.. (לתיקייה המכילה) | |
What do fields "#Uses internal", "#Uses external" mean? | |
#Uses internal - how much internal classes (in input project) are called from class/package. #Uses external - how much external classes (i.e. from java libraries) are called from class/package. You can find example by link: http://classycle.sourceforge.net/ant.html |
What the output files names? | |
*SCC - strongly conncted components classes.csv - data for classes packages.csv - data for packeges classes_edges.csv - edges between classes packages_edges.csv - edges between packeges class_components.csv - SCC for classes package_components.csv - SCC for packeges class_components_edges.csv - edges between SCCs for classes package_components_edges.csv - edges between SCCs for packeges |
Where the output files need to be created? | |
The ouput files should be created in your project folder. The path you can receive by operation: new File (".").getAbsolutePath() |
If the root folder have classes, to what package does those classes belong? | |
They belongs to default package and in your program its name is "" (empty string). |
How can the class package be found? | |
Let's say you receive as input one CLASSPATH (root) - 'C:\SD' The absolute path of the found class is - 'C:\SD\java\hw4\c.class' Then the package of the class file is 'java.hw4'. You can use Filename class for transforming absolute path and root to the package. |
In the constant pool each class has an entry with its own name, does it mean that there will be a self loop at every vertex in the graph? | |
The call from class to itself is not supposed to be in the class dependancies tree. So the name of the class itself in the ConstantPool result should be ignored. |
When class1 uses class2 when class1 and class2 is on the same package, does it | |
There is no self loop in this case. |
All classes which do not extend other classes, extend java.lang.Object. But, in the example you published there's no reference to Object, why? | |
The example I published was the example of output tables. You can assume there that the java.utils.HashTable is the only dependency that ConstantPool returned. So you need to count java.lang.Object in the external dependencies if ConstantPool returns it. |
Does we need to document classes we used (like Attacher, for example), but | |
To save your time, you are allowed to leave adopted but not modified classes without Javadoc. It means you need to add Javadoc to the new or modified classes only. |