public class UmlGraph
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static Options |
commentOptions
Options used for commenting nodes
|
private static java.lang.String |
docletName |
private static java.lang.String |
programName |
Constructor and Description |
---|
UmlGraph() |
Modifier and Type | Method and Description |
---|---|
static void |
buildGraph(com.sun.javadoc.RootDoc root,
OptionProvider op,
com.sun.javadoc.Doc contextDoc)
Builds and outputs a single graph according to the view overrides
|
static Options |
buildOptions(com.sun.javadoc.RootDoc root)
Creates the base Options object.
|
private static View |
buildView(com.sun.javadoc.RootDoc root,
com.sun.javadoc.ClassDoc viewClass,
OptionProvider provider)
Builds a view along with its parent views, recursively
|
static View[] |
buildViews(Options opt,
com.sun.javadoc.RootDoc srcRootDoc,
com.sun.javadoc.RootDoc viewRootDoc)
Builds the views according to the parameters on the command line
|
private static com.sun.javadoc.ClassDoc |
findClass(com.sun.javadoc.RootDoc root,
java.lang.String name)
Return the ClassDoc for the specified class; null if not found.
|
static Options |
getCommentOptions() |
static com.sun.javadoc.LanguageVersion |
languageVersion()
Indicate the language version we support
|
static void |
main(java.lang.String[] args) |
static int |
optionLength(java.lang.String option)
Option checking
|
static boolean |
start(com.sun.javadoc.RootDoc root)
Entry point through javadoc
|
private static final java.lang.String programName
private static final java.lang.String docletName
private static Options commentOptions
public static boolean start(com.sun.javadoc.RootDoc root) throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args)
public static Options getCommentOptions()
public static Options buildOptions(com.sun.javadoc.RootDoc root)
private static com.sun.javadoc.ClassDoc findClass(com.sun.javadoc.RootDoc root, java.lang.String name)
public static void buildGraph(com.sun.javadoc.RootDoc root, OptionProvider op, com.sun.javadoc.Doc contextDoc) throws java.io.IOException
java.io.IOException
public static View[] buildViews(Options opt, com.sun.javadoc.RootDoc srcRootDoc, com.sun.javadoc.RootDoc viewRootDoc)
opt
- The optionssrcRootDoc
- The RootDoc for the source classesviewRootDoc
- The RootDoc for the view classes (may be
different, or may be the same as the srcRootDoc)private static View buildView(com.sun.javadoc.RootDoc root, com.sun.javadoc.ClassDoc viewClass, OptionProvider provider)
public static int optionLength(java.lang.String option)
public static com.sun.javadoc.LanguageVersion languageVersion()