Class SourceToHTMLConverter
- java.lang.Object
-
- gw.gosudoc.com.sun.tools.doclets.formats.html.SourceToHTMLConverter
-
@Deprecated public class SourceToHTMLConverter extends java.lang.ObjectDeprecated.Converts Java Source Code to HTML.This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
- Since:
- 1.4
-
-
Field Summary
Fields Modifier and Type Field Description private ConfigurationImplconfigurationDeprecated.private static java.lang.StringNEW_LINEDeprecated.New line to be added to the documentation.private static intNUM_BLANK_LINESDeprecated.The number of trailing blank lines at the end of the page.private DocPathoutputdirDeprecated.private DocPathrelativePathDeprecated.Relative path from the documentation root to the file that is being generated.private RootDocrootDocDeprecated.private UtilsutilsDeprecated.
-
Constructor Summary
Constructors Modifier Constructor Description privateSourceToHTMLConverter(ConfigurationImpl configuration, RootDoc rd, DocPath outputdir)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description private static voidaddBlankLines(Content pre)Deprecated.Add trailing blank lines at the end of the page.private voidaddLine(Content pre, java.lang.String line, int currentLineNo)Deprecated.Add a line from source to the HTML file that is generated.private static voidaddLineNo(Content pre, int lineno)Deprecated.Add the line numbers for the source code.voidconvertClass(ClassDoc cd, DocPath outputdir)Deprecated.Convert the given Class to an HTML.voidconvertPackage(PackageDoc pd, DocPath outputdir)Deprecated.Convert the Classes in the given Package to an HTML.static voidconvertRoot(ConfigurationImpl configuration, RootDoc rd, DocPath outputdir)Deprecated.Convert the Classes in the given RootDoc to an HTML.(package private) voidgenerate()Deprecated.static java.lang.StringgetAnchorName(Doc d)Deprecated.Given aDoc, return an anchor name for it.private static ContentgetHeader()Deprecated.Get the header.HtmlTreegetStyleSheetProperties()Deprecated.Returns a link to the stylesheet file.private voidwriteToFile(Content body, DocPath path)Deprecated.Write the output to the file.
-
-
-
Field Detail
-
NUM_BLANK_LINES
private static final int NUM_BLANK_LINES
Deprecated.The number of trailing blank lines at the end of the page. This is inserted so that anchors at the bottom of small pages can be reached.- See Also:
- Constant Field Values
-
NEW_LINE
private static final java.lang.String NEW_LINE
Deprecated.New line to be added to the documentation.
-
configuration
private final ConfigurationImpl configuration
Deprecated.
-
utils
private final Utils utils
Deprecated.
-
rootDoc
private final RootDoc rootDoc
Deprecated.
-
outputdir
private DocPath outputdir
Deprecated.
-
relativePath
private DocPath relativePath
Deprecated.Relative path from the documentation root to the file that is being generated.
-
-
Constructor Detail
-
SourceToHTMLConverter
private SourceToHTMLConverter(ConfigurationImpl configuration, RootDoc rd, DocPath outputdir)
Deprecated.
-
-
Method Detail
-
convertRoot
public static void convertRoot(ConfigurationImpl configuration, RootDoc rd, DocPath outputdir)
Deprecated.Convert the Classes in the given RootDoc to an HTML.- Parameters:
configuration- the configuration.rd- the RootDoc to convert.outputdir- the name of the directory to output to.
-
generate
void generate()
Deprecated.
-
convertPackage
public void convertPackage(PackageDoc pd, DocPath outputdir)
Deprecated.Convert the Classes in the given Package to an HTML.- Parameters:
pd- the Package to convert.outputdir- the name of the directory to output to.
-
convertClass
public void convertClass(ClassDoc cd, DocPath outputdir)
Deprecated.Convert the given Class to an HTML.- Parameters:
cd- the class to convert.outputdir- the name of the directory to output to.
-
writeToFile
private void writeToFile(Content body, DocPath path) throws java.io.IOException
Deprecated.Write the output to the file.- Parameters:
body- the documentation content to be written to the file.path- the path for the file.- Throws:
java.io.IOException
-
getStyleSheetProperties
public HtmlTree getStyleSheetProperties()
Deprecated.Returns a link to the stylesheet file.- Returns:
- an HtmlTree for the lINK tag which provides the stylesheet location
-
getHeader
private static Content getHeader()
Deprecated.Get the header.- Returns:
- the header content for the HTML file
-
addLineNo
private static void addLineNo(Content pre, int lineno)
Deprecated.Add the line numbers for the source code.- Parameters:
pre- the content tree to which the line number will be addedlineno- The line number
-
addLine
private void addLine(Content pre, java.lang.String line, int currentLineNo)
Deprecated.Add a line from source to the HTML file that is generated.- Parameters:
pre- the content tree to which the line will be added.line- the string to format.currentLineNo- the current number.
-
addBlankLines
private static void addBlankLines(Content pre)
Deprecated.Add trailing blank lines at the end of the page.- Parameters:
pre- the content tree to which the blank lines will be added.
-
getAnchorName
public static java.lang.String getAnchorName(Doc d)
Deprecated.Given aDoc, return an anchor name for it.- Parameters:
d- theDocto check.- Returns:
- the name of the anchor.
-
-