From 3c15106e737a4e5a8ca8b9d03d0df0e00e133176 Mon Sep 17 00:00:00 2001 From: Diomidis Spinellis Date: Fri, 19 Jul 2002 11:35:37 +0000 Subject: [PATCH] Initial revision --- .../spinellis/umlgraph/doclet/ClassGraph.java | 33 +++++++++++++++++++ .../spinellis/umlgraph/doclet/ClassInfo.java | 33 +++++++++++++++++++ src/gr/spinellis/umlgraph/doclet/Options.java | 33 +++++++++++++++++++ .../spinellis/umlgraph/doclet/StringUtil.java | 33 +++++++++++++++++++ .../spinellis/umlgraph/doclet/UmlGraph.java | 33 +++++++++++++++++++ src/org/umlgraph/doclet/ClassGraph.java | 33 +++++++++++++++++++ src/org/umlgraph/doclet/ClassInfo.java | 33 +++++++++++++++++++ src/org/umlgraph/doclet/Options.java | 33 +++++++++++++++++++ src/org/umlgraph/doclet/StringUtil.java | 33 +++++++++++++++++++ src/org/umlgraph/doclet/UmlGraph.java | 33 +++++++++++++++++++ 10 files changed, 330 insertions(+) create mode 100644 src/gr/spinellis/umlgraph/doclet/ClassGraph.java create mode 100644 src/gr/spinellis/umlgraph/doclet/ClassInfo.java create mode 100644 src/gr/spinellis/umlgraph/doclet/Options.java create mode 100644 src/gr/spinellis/umlgraph/doclet/StringUtil.java create mode 100644 src/gr/spinellis/umlgraph/doclet/UmlGraph.java create mode 100644 src/org/umlgraph/doclet/ClassGraph.java create mode 100644 src/org/umlgraph/doclet/ClassInfo.java create mode 100644 src/org/umlgraph/doclet/Options.java create mode 100644 src/org/umlgraph/doclet/StringUtil.java create mode 100644 src/org/umlgraph/doclet/UmlGraph.java diff --git a/src/gr/spinellis/umlgraph/doclet/ClassGraph.java b/src/gr/spinellis/umlgraph/doclet/ClassGraph.java new file mode 100644 index 0000000..a4246bc --- /dev/null +++ b/src/gr/spinellis/umlgraph/doclet/ClassGraph.java @@ -0,0 +1,33 @@ +/* + * Create a graphviz graph based on the classes in the specified java + * source files. + * + * (C) Copyright 2002 Diomidis Spinellis + * + * Permission to use, copy, and distribute this software and its + * documentation for any purpose and without fee is hereby granted, + * provided that the above copyright notice appear in all copies and that + * both that copyright notice and this permission notice appear in + * supporting documentation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF + * MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. + * + * $Id$ + * + */ + +import com.sun.javadoc.*; + +public class UmlGraph { + public static boolean start(RootDoc root) { + ClassDoc[] classes = root.classes(); + for (int i = 0; i < classes.length; i++) { + ClassDoc c = classes[i]; + + System.out.println(classes[i]); + } + return true; + } +} diff --git a/src/gr/spinellis/umlgraph/doclet/ClassInfo.java b/src/gr/spinellis/umlgraph/doclet/ClassInfo.java new file mode 100644 index 0000000..a4246bc --- /dev/null +++ b/src/gr/spinellis/umlgraph/doclet/ClassInfo.java @@ -0,0 +1,33 @@ +/* + * Create a graphviz graph based on the classes in the specified java + * source files. + * + * (C) Copyright 2002 Diomidis Spinellis + * + * Permission to use, copy, and distribute this software and its + * documentation for any purpose and without fee is hereby granted, + * provided that the above copyright notice appear in all copies and that + * both that copyright notice and this permission notice appear in + * supporting documentation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF + * MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. + * + * $Id$ + * + */ + +import com.sun.javadoc.*; + +public class UmlGraph { + public static boolean start(RootDoc root) { + ClassDoc[] classes = root.classes(); + for (int i = 0; i < classes.length; i++) { + ClassDoc c = classes[i]; + + System.out.println(classes[i]); + } + return true; + } +} diff --git a/src/gr/spinellis/umlgraph/doclet/Options.java b/src/gr/spinellis/umlgraph/doclet/Options.java new file mode 100644 index 0000000..a4246bc --- /dev/null +++ b/src/gr/spinellis/umlgraph/doclet/Options.java @@ -0,0 +1,33 @@ +/* + * Create a graphviz graph based on the classes in the specified java + * source files. + * + * (C) Copyright 2002 Diomidis Spinellis + * + * Permission to use, copy, and distribute this software and its + * documentation for any purpose and without fee is hereby granted, + * provided that the above copyright notice appear in all copies and that + * both that copyright notice and this permission notice appear in + * supporting documentation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF + * MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. + * + * $Id$ + * + */ + +import com.sun.javadoc.*; + +public class UmlGraph { + public static boolean start(RootDoc root) { + ClassDoc[] classes = root.classes(); + for (int i = 0; i < classes.length; i++) { + ClassDoc c = classes[i]; + + System.out.println(classes[i]); + } + return true; + } +} diff --git a/src/gr/spinellis/umlgraph/doclet/StringUtil.java b/src/gr/spinellis/umlgraph/doclet/StringUtil.java new file mode 100644 index 0000000..a4246bc --- /dev/null +++ b/src/gr/spinellis/umlgraph/doclet/StringUtil.java @@ -0,0 +1,33 @@ +/* + * Create a graphviz graph based on the classes in the specified java + * source files. + * + * (C) Copyright 2002 Diomidis Spinellis + * + * Permission to use, copy, and distribute this software and its + * documentation for any purpose and without fee is hereby granted, + * provided that the above copyright notice appear in all copies and that + * both that copyright notice and this permission notice appear in + * supporting documentation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF + * MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. + * + * $Id$ + * + */ + +import com.sun.javadoc.*; + +public class UmlGraph { + public static boolean start(RootDoc root) { + ClassDoc[] classes = root.classes(); + for (int i = 0; i < classes.length; i++) { + ClassDoc c = classes[i]; + + System.out.println(classes[i]); + } + return true; + } +} diff --git a/src/gr/spinellis/umlgraph/doclet/UmlGraph.java b/src/gr/spinellis/umlgraph/doclet/UmlGraph.java new file mode 100644 index 0000000..a4246bc --- /dev/null +++ b/src/gr/spinellis/umlgraph/doclet/UmlGraph.java @@ -0,0 +1,33 @@ +/* + * Create a graphviz graph based on the classes in the specified java + * source files. + * + * (C) Copyright 2002 Diomidis Spinellis + * + * Permission to use, copy, and distribute this software and its + * documentation for any purpose and without fee is hereby granted, + * provided that the above copyright notice appear in all copies and that + * both that copyright notice and this permission notice appear in + * supporting documentation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF + * MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. + * + * $Id$ + * + */ + +import com.sun.javadoc.*; + +public class UmlGraph { + public static boolean start(RootDoc root) { + ClassDoc[] classes = root.classes(); + for (int i = 0; i < classes.length; i++) { + ClassDoc c = classes[i]; + + System.out.println(classes[i]); + } + return true; + } +} diff --git a/src/org/umlgraph/doclet/ClassGraph.java b/src/org/umlgraph/doclet/ClassGraph.java new file mode 100644 index 0000000..a4246bc --- /dev/null +++ b/src/org/umlgraph/doclet/ClassGraph.java @@ -0,0 +1,33 @@ +/* + * Create a graphviz graph based on the classes in the specified java + * source files. + * + * (C) Copyright 2002 Diomidis Spinellis + * + * Permission to use, copy, and distribute this software and its + * documentation for any purpose and without fee is hereby granted, + * provided that the above copyright notice appear in all copies and that + * both that copyright notice and this permission notice appear in + * supporting documentation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF + * MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. + * + * $Id$ + * + */ + +import com.sun.javadoc.*; + +public class UmlGraph { + public static boolean start(RootDoc root) { + ClassDoc[] classes = root.classes(); + for (int i = 0; i < classes.length; i++) { + ClassDoc c = classes[i]; + + System.out.println(classes[i]); + } + return true; + } +} diff --git a/src/org/umlgraph/doclet/ClassInfo.java b/src/org/umlgraph/doclet/ClassInfo.java new file mode 100644 index 0000000..a4246bc --- /dev/null +++ b/src/org/umlgraph/doclet/ClassInfo.java @@ -0,0 +1,33 @@ +/* + * Create a graphviz graph based on the classes in the specified java + * source files. + * + * (C) Copyright 2002 Diomidis Spinellis + * + * Permission to use, copy, and distribute this software and its + * documentation for any purpose and without fee is hereby granted, + * provided that the above copyright notice appear in all copies and that + * both that copyright notice and this permission notice appear in + * supporting documentation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF + * MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. + * + * $Id$ + * + */ + +import com.sun.javadoc.*; + +public class UmlGraph { + public static boolean start(RootDoc root) { + ClassDoc[] classes = root.classes(); + for (int i = 0; i < classes.length; i++) { + ClassDoc c = classes[i]; + + System.out.println(classes[i]); + } + return true; + } +} diff --git a/src/org/umlgraph/doclet/Options.java b/src/org/umlgraph/doclet/Options.java new file mode 100644 index 0000000..a4246bc --- /dev/null +++ b/src/org/umlgraph/doclet/Options.java @@ -0,0 +1,33 @@ +/* + * Create a graphviz graph based on the classes in the specified java + * source files. + * + * (C) Copyright 2002 Diomidis Spinellis + * + * Permission to use, copy, and distribute this software and its + * documentation for any purpose and without fee is hereby granted, + * provided that the above copyright notice appear in all copies and that + * both that copyright notice and this permission notice appear in + * supporting documentation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF + * MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. + * + * $Id$ + * + */ + +import com.sun.javadoc.*; + +public class UmlGraph { + public static boolean start(RootDoc root) { + ClassDoc[] classes = root.classes(); + for (int i = 0; i < classes.length; i++) { + ClassDoc c = classes[i]; + + System.out.println(classes[i]); + } + return true; + } +} diff --git a/src/org/umlgraph/doclet/StringUtil.java b/src/org/umlgraph/doclet/StringUtil.java new file mode 100644 index 0000000..a4246bc --- /dev/null +++ b/src/org/umlgraph/doclet/StringUtil.java @@ -0,0 +1,33 @@ +/* + * Create a graphviz graph based on the classes in the specified java + * source files. + * + * (C) Copyright 2002 Diomidis Spinellis + * + * Permission to use, copy, and distribute this software and its + * documentation for any purpose and without fee is hereby granted, + * provided that the above copyright notice appear in all copies and that + * both that copyright notice and this permission notice appear in + * supporting documentation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF + * MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. + * + * $Id$ + * + */ + +import com.sun.javadoc.*; + +public class UmlGraph { + public static boolean start(RootDoc root) { + ClassDoc[] classes = root.classes(); + for (int i = 0; i < classes.length; i++) { + ClassDoc c = classes[i]; + + System.out.println(classes[i]); + } + return true; + } +} diff --git a/src/org/umlgraph/doclet/UmlGraph.java b/src/org/umlgraph/doclet/UmlGraph.java new file mode 100644 index 0000000..a4246bc --- /dev/null +++ b/src/org/umlgraph/doclet/UmlGraph.java @@ -0,0 +1,33 @@ +/* + * Create a graphviz graph based on the classes in the specified java + * source files. + * + * (C) Copyright 2002 Diomidis Spinellis + * + * Permission to use, copy, and distribute this software and its + * documentation for any purpose and without fee is hereby granted, + * provided that the above copyright notice appear in all copies and that + * both that copyright notice and this permission notice appear in + * supporting documentation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF + * MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. + * + * $Id$ + * + */ + +import com.sun.javadoc.*; + +public class UmlGraph { + public static boolean start(RootDoc root) { + ClassDoc[] classes = root.classes(); + for (int i = 0; i < classes.length; i++) { + ClassDoc c = classes[i]; + + System.out.println(classes[i]); + } + return true; + } +}