X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Finspector%2Fjava%2Fstructure%2FClassGraph.java;h=c8de18b239730ca649de8fb6d621ead643fdce98;hb=0a0fbcb01497d4a860cbbcb60ecefdcee4f89067;hp=62e091157d56de91a9feb04416fbf7ce2c632a9b;hpb=92e7df28bd9624ce5d35fac41e7f06f7d23d9217;p=javainspect.git diff --git a/src/main/java/eu/svjatoslav/inspector/java/structure/ClassGraph.java b/src/main/java/eu/svjatoslav/inspector/java/structure/ClassGraph.java index 62e0911..c8de18b 100755 --- a/src/main/java/eu/svjatoslav/inspector/java/structure/ClassGraph.java +++ b/src/main/java/eu/svjatoslav/inspector/java/structure/ClassGraph.java @@ -44,6 +44,8 @@ public class ClassGraph { /** * @param objects * objects that shall be added to graph + * + * @return this {@link ClassGraph} */ public ClassGraph add(final Object... objects) { @@ -84,17 +86,11 @@ public class ClassGraph { } /** - * @param targetDirectory - * target directory name - * * @param resultFileName * file name for the generated graph. File extension will be * added automatically. Existing file with the same name will be * overwritten. * - * @param keepDotFile - * if set to true then intermediary GraphViz DOT - * file will be kept. */ public void generateGraph(final String resultFileName) { @@ -113,8 +109,8 @@ public class ClassGraph { // execute GraphViz to visualize graph try { Runtime.getRuntime() - .exec(new String[] { "dot", "-Tpng", dotFilePath, "-o", - imageFilePath }).waitFor(); + .exec(new String[] { "dot", "-Tpng", dotFilePath, "-o", + imageFilePath }).waitFor(); } catch (final InterruptedException e) { } finally { } @@ -147,6 +143,8 @@ public class ClassGraph { /** * @param clazz * class that shall be added to graph + * + * @return {@link ClassDescriptor} corresponding to given {@link Class} */ protected ClassDescriptor getOrCreateClassDescriptor(final Class clazz) { @@ -171,6 +169,8 @@ public class ClassGraph { /** * Hide orphaned class that have no references + * + * @return this {@link ClassGraph} */ public ClassGraph hideOrphanedClasses() {