|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.Writer
java.io.PrintWriter
com.sun.tools.doclets.formats.html.markup.HtmlWriter
com.sun.tools.doclets.formats.html.markup.HtmlDocWriter
com.sun.tools.doclets.formats.html.HtmlDocletWriter
com.sun.tools.doclets.formats.html.AbstractTreeWriter
public abstract class AbstractTreeWriter
Abstract class to print the class hierarchy page for all the Classes. This
is sub-classed by PackageTreeWriter and TreeWriter to
generate the Package Tree and global Tree(for all the classes and packages)
pages.
| Field Summary | |
|---|---|
protected ClassTree |
classtree
The class and interface tree built by using ClassTree |
| Fields inherited from class com.sun.tools.doclets.formats.html.HtmlDocletWriter |
|---|
configuration, displayLength, filename, path, relativePath, relativepathNoSlash |
| Fields inherited from class com.sun.tools.doclets.formats.html.markup.HtmlWriter |
|---|
fileseparator, htmlFilename, winTitle |
| Fields inherited from class java.io.PrintWriter |
|---|
out |
| Fields inherited from class java.io.Writer |
|---|
lock |
| Constructor Summary | |
|---|---|
protected |
AbstractTreeWriter(ConfigurationImpl configuration,
java.lang.String filename,
ClassTree classtree)
Constructor initilises classtree variable. |
protected |
AbstractTreeWriter(ConfigurationImpl configuration,
java.lang.String path,
java.lang.String filename,
ClassTree classtree,
PackageDoc pkg)
Create appropriate directory for the package and also initilise the relative path from this generated file to the current or the destination directory. |
| Method Summary | |
|---|---|
protected void |
generateLevelInfo(ClassDoc parent,
java.util.List<ClassDoc> list,
boolean isEnum)
Generate each level of the class tree. |
protected void |
generateTree(java.util.List<ClassDoc> list,
java.lang.String heading)
Generate the heading for the tree depending upon tree type if it's a Class Tree or Interface tree and also print the tree. |
protected void |
navLinkTree()
Highlight "Tree" word in the navigation bar, since this is the tree page. |
protected void |
printExtendsImplements(ClassDoc parent,
ClassDoc cd)
Print the information regarding the classes which this class extends or implements. |
protected void |
printPartialInfo(ClassDoc cd)
Print information about the class kind, if it's a "class" or "interface". |
protected void |
printTreeHeading(java.lang.String heading)
Print the heading for the tree. |
| Methods inherited from class com.sun.tools.doclets.formats.html.markup.HtmlDocWriter |
|---|
getHyperLink, getHyperLink, getHyperLink, getHyperLink, getPkgName, printBodyHtmlEnd, printFooter, printFrameFooter, printFramesetHeader, printFramesetHeader, printHyperLink, printHyperLink, printHyperLink, printHyperLink, printNbsps, printPkgName, spaces, today |
| Methods inherited from class java.io.PrintWriter |
|---|
append, append, append, checkError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final ClassTree classtree
ClassTree
| Constructor Detail |
|---|
protected AbstractTreeWriter(ConfigurationImpl configuration,
java.lang.String filename,
ClassTree classtree)
throws java.io.IOException
filename - File to be generated.classtree - Tree built by ClassTree.
java.io.IOException
DocletAbortException
protected AbstractTreeWriter(ConfigurationImpl configuration,
java.lang.String path,
java.lang.String filename,
ClassTree classtree,
PackageDoc pkg)
throws java.io.IOException
path - Directories in this path will be created if they are not
already there.filename - Name of the package tree file to be generated.classtree - The tree built using ClassTree.
for the package pkg.pkg - PackageDoc for which tree file will be generated.
java.io.IOException
DocletAbortException| Method Detail |
|---|
protected void generateLevelInfo(ClassDoc parent,
java.util.List<ClassDoc> list,
boolean isEnum)
parent - the superclass or superinterface of the list.list - list of the sub-classes at this level.isEnum - true if we are generating a tree for enums.
protected void generateTree(java.util.List<ClassDoc> list,
java.lang.String heading)
list - List of classes which are at the most base level, all the
other classes in this run will derive from these classes.heading - Heading for the tree.
protected void printExtendsImplements(ClassDoc parent,
ClassDoc cd)
cd - The classdoc under consideration.protected void printPartialInfo(ClassDoc cd)
cd - classdoc.protected void printTreeHeading(java.lang.String heading)
heading - Heading for the tree.protected void navLinkTree()
navLinkTree in class HtmlDocletWriter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||