gr.spinellis.umlgraph.doclet
Class UmlGraph

Package class diagram package UmlGraph
java.lang.Object
  extended by gr.spinellis.umlgraph.doclet.UmlGraph

public class UmlGraph
extends Object

Doclet API implementation


Constructor Summary
UmlGraph()
           
 
Method Summary
static void buildGraph(RootDoc root, OptionProvider op, Doc contextDoc)
          Builds and outputs a single graph according to the view overrides
static Options buildOptions(RootDoc root)
          Creates the base Options object, that contains both the options specified on the command line and the ones specified in the UMLOptions class, if available.
private static View buildView(RootDoc root, ClassDoc viewClass, OptionProvider provider)
          Builds a view along with its parent views, recursively
static View[] buildViews(Options opt, RootDoc srcRootDoc, RootDoc viewRootDoc)
          Builds the views according to the parameters on the command line
private static ClassDoc findUMLOptions(RootDoc root)
           
static LanguageVersion languageVersion()
          Indicate the language version we support
static int optionLength(String option)
          Option checking
static boolean start(RootDoc root)
          Entry point
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UmlGraph

public UmlGraph()
Method Detail

start

public static boolean start(RootDoc root)
                     throws IOException
Entry point

Throws:
IOException

buildOptions

public static Options buildOptions(RootDoc root)
Creates the base Options object, that contains both the options specified on the command line and the ones specified in the UMLOptions class, if available.


findUMLOptions

private static ClassDoc findUMLOptions(RootDoc root)

buildGraph

public static void buildGraph(RootDoc root,
                              OptionProvider op,
                              Doc contextDoc)
                       throws IOException
Builds and outputs a single graph according to the view overrides

Throws:
IOException

buildViews

public static View[] buildViews(Options opt,
                                RootDoc srcRootDoc,
                                RootDoc viewRootDoc)
Builds the views according to the parameters on the command line

Parameters:
opt - The options
srcRootDoc - The RootDoc for the source classes
viewRootDoc - The RootDoc for the view classes (may be different, or may be the same as the srcRootDoc)

buildView

private static View buildView(RootDoc root,
                              ClassDoc viewClass,
                              OptionProvider provider)
Builds a view along with its parent views, recursively


optionLength

public static int optionLength(String option)
Option checking


languageVersion

public static LanguageVersion languageVersion()
Indicate the language version we support