public interface DocletOutput
This interface is intended for working with the classes providing functionality made available through the JEL expression language. The methods have been introduced ad hoc to provide the functionality required for that purpose, and do not intend to form a comprehensive doclet output interface.
Since this interface is only intended for use at package build time, and since the classes it works with have conservatively-written javadocs, implementations do not need to be robust against all possible input. In case of problems however they should warn or fail noisily rather than produce sub-standard best-efforts output.
This interface makes no use of any javadoc API. Its purpose is to act as a format-specific output handler that is not tied to a particular javadoc parsing API.
Modifier and Type | Interface and Description |
---|---|
static interface |
DocletOutput.DocVariable
Characterises a method parameter.
|
Modifier and Type | Method and Description |
---|---|
void |
endClass()
End output of documentation for the most recently started class.
|
void |
endMember()
End output of the most recently started member.
|
void |
endOutput()
Called at the end of operation.
|
void |
outExamples(String heading,
String[] examples)
Writes one or more example entries.
|
void |
outMemberItem(String key,
String value)
Writes a name-value pair presenting an attribute of a class member
(field or method).
|
void |
outParameters(DocletOutput.DocVariable[] params)
Writes a description of the parameters of a method.
|
void |
outReturn(String type,
String commentText)
Writes information about the return value of a method.
|
void |
outSees(String heading,
String[] sees)
Writes one or more See Also entries.
|
void |
startClass(String className,
String firstSentence,
String fullDescription)
Begin output of documentation for a given class.
|
void |
startMember(String name,
String type,
String memberId,
String description)
Begin output of documentation for a given class member (field or method).
|
void |
startOutput()
Called at the start of operation.
|
void startOutput() throws IOException
IOException
void endOutput() throws IOException
IOException
void startClass(String className, String firstSentence, String fullDescription) throws IOException
className
- fully qualified class namefirstSentence
- first sentence of class description, in HTMLfullDescription
- full text of class description, in HTMLIOException
void endClass() throws IOException
IOException
void startMember(String name, String type, String memberId, String description) throws IOException
name
- user-readable name of the membertype
- some user-readable (maybe avoiding technical terms)
description of what kind of member it ismemberId
- string uniquely identifying this member within
its parent classdescription
- full text of member description, in HTMLIOException
void endMember() throws IOException
IOException
void outMemberItem(String key, String value) throws IOException
key
- item namevalue
- item value, may be HTMLIOException
void outParameters(DocletOutput.DocVariable[] params) throws IOException
params
- parameter listIOException
void outReturn(String type, String commentText) throws IOException
type
- return type specification for presentation to the usercommentText
- description of returned value, may be HTMLIOException
void outExamples(String heading, String[] examples) throws IOException
heading
- heading for examples sectionexamples
- list of example lines, may be HTMLIOException
void outSees(String heading, String[] sees) throws IOException
heading
- heading for See Also sectionsees
- list of entries, may be HTMLIOException
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.