Klasse MethodWriterImpl
java.lang.Object
org.jdrupes.mdoclet.internal.doclets.formats.html.AbstractMemberWriter
org.jdrupes.mdoclet.internal.doclets.formats.html.AbstractExecutableMemberWriter
org.jdrupes.mdoclet.internal.doclets.formats.html.MethodWriterImpl
- Alle implementierten Schnittstellen:
MemberSummaryWriter,MemberWriter,MethodWriter
- Bekannte direkte Unterklassen:
HtmlSerialMethodWriter
public class MethodWriterImpl
extends AbstractExecutableMemberWriter
implements MethodWriter, MemberSummaryWriter
Writes method documentation in HTML format.
-
Feldübersicht
Von Klasse geerbte Felder org.jdrupes.mdoclet.internal.doclets.formats.html.AbstractMemberWriter
configuration, contents, htmlIds, links, options, resources, typeElement, utils, writer -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungConstruct a new MethodWriterImpl.MethodWriterImpl(SubWriterHolderWriter writer, TypeElement typeElement) Construct a new MethodWriterImpl. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddComments(TypeMirror holderType, ExecutableElement method, Content methodContent) Add the comments for the given method.voidaddDeprecated(ExecutableElement method, Content methodContent) Add the deprecated output for the given method.protected static voidaddImplementsInfo(HtmlDocletWriter writer, ExecutableElement method, Collection<ExecutableElement> methods, Content dl) Adds “implements” information for a method (if appropriate) into a definition list.voidaddInheritedSummaryLabel(TypeElement typeElement, Content content) Adds inherited summary label for the member.protected static voidaddOverridden(HtmlDocletWriter writer, TypeMirror overriddenType, ExecutableElement method, Content dl) Adds “overrides” or “specified by” information about a method (if appropriate) into a definition list.voidaddPreview(ExecutableElement method, Content content) Adds the preview output for the given member.voidaddSummary(Content summariesList, Content content) Adds the given summary to the list of summaries.voidaddSummaryLabel(Content content) Adds the summary label for the member.protected voidaddSummaryType(Element member, Content content) Adds the summary type for the member.voidaddTags(ExecutableElement method, Content methodContent) Add the tags for the given method.Creates the summary table for this element.Gets the member header.getMemberSummaryHeader(TypeElement typeElement, Content target) Returns the member summary header for the given class.getMethodDetails(Content methodDetailsHeader, Content methodDetails) Get the method details.getMethodDetailsHeader(Content content) Get the method details header.getMethodHeader(ExecutableElement method) Get the method documentation header.protected ContentgetReturnType(ExecutableElement method) Get the return type for the given method.getSignature(ExecutableElement method) Get the signature for the given method.getSummaryTableHeader(Element member) Returns the summary table header for the member.Von Klasse geerbte Methoden org.jdrupes.mdoclet.internal.doclets.formats.html.AbstractExecutableMemberWriter
addInheritedSummaryLink, addParam, addParameters, addReceiver, addSummaryLink, getExceptions, getParameters, getSummaryLink, getTypeParameters, implementsMethodInIntfac, isAnnotatedReceiverVon Klasse geerbte Methoden org.jdrupes.mdoclet.internal.doclets.formats.html.AbstractMemberWriter
addComment, addDeprecatedInfo, addInheritedMemberSummary, addMemberSummary, addModifiersAndType, addPreviewInfo, addSummaryLink, addUseInfo, getInheritedSummaryHeader, getInheritedSummaryLinks, getMember, getMemberList, getMemberListItem, getSummaryTable, name, serialWarningVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden org.jdrupes.mdoclet.internal.doclets.toolkit.MemberSummaryWriter
addInheritedMemberSummary, addMemberSummary, getInheritedSummaryHeader, getInheritedSummaryLinks, getMember, getSummaryTableVon Schnittstelle geerbte Methoden org.jdrupes.mdoclet.internal.doclets.toolkit.MemberWriter
getMemberList, getMemberListItem
-
Konstruktordetails
-
MethodWriterImpl
Construct a new MethodWriterImpl.- Parameter:
writer- the writer for the class that the methods belong to.typeElement- the class being documented.
-
MethodWriterImpl
Construct a new MethodWriterImpl.- Parameter:
writer- The writer for the class that the methods belong to.
-
-
Methodendetails
-
getMemberSummaryHeader
Beschreibung aus Schnittstelle kopiert:MemberSummaryWriterReturns the member summary header for the given class.- Angegeben von:
getMemberSummaryHeaderin SchnittstelleMemberSummaryWriter- Parameter:
typeElement- the class the summary belongs totarget- the content to which the member summary will be added- Gibt zurück:
- the member summary header
-
addSummary
Beschreibung aus Schnittstelle kopiert:MemberSummaryWriterAdds the given summary to the list of summaries.- Angegeben von:
addSummaryin SchnittstelleMemberSummaryWriter- Parameter:
summariesList- the list of summariescontent- the summary
-
getMethodDetailsHeader
Beschreibung aus Schnittstelle kopiert:MethodWriterGet the method details header.- Angegeben von:
getMethodDetailsHeaderin SchnittstelleMethodWriter- Parameter:
content- the content representing member details- Gibt zurück:
- the method details header
-
getMethodHeader
Beschreibung aus Schnittstelle kopiert:MethodWriterGet the method documentation header.- Angegeben von:
getMethodHeaderin SchnittstelleMethodWriter- Parameter:
method- the method being documented- Gibt zurück:
- the method documentation header
-
getSignature
Beschreibung aus Schnittstelle kopiert:MethodWriterGet the signature for the given method.- Angegeben von:
getSignaturein SchnittstelleMethodWriter- Parameter:
method- the method being documented- Gibt zurück:
- the method signature
-
addDeprecated
Beschreibung aus Schnittstelle kopiert:MethodWriterAdd the deprecated output for the given method.- Angegeben von:
addDeprecatedin SchnittstelleMethodWriter- Parameter:
method- the method being documentedmethodContent- the content to which the deprecated information will be added
-
addPreview
Beschreibung aus Schnittstelle kopiert:MethodWriterAdds the preview output for the given member.- Angegeben von:
addPreviewin SchnittstelleMethodWriter- Parameter:
method- the member being documentedcontent- the content to which the preview information will be added
-
addComments
Beschreibung aus Schnittstelle kopiert:MethodWriterAdd the comments for the given method.- Angegeben von:
addCommentsin SchnittstelleMethodWriter- Parameter:
holderType- the holder type (not erasure) of the methodmethod- the method being documentedmethodContent- the content to which the comments will be added
-
addTags
Beschreibung aus Schnittstelle kopiert:MethodWriterAdd the tags for the given method.- Angegeben von:
addTagsin SchnittstelleMethodWriter- Parameter:
method- the method being documentedmethodContent- the content to which the tags will be added
-
getMethodDetails
Beschreibung aus Schnittstelle kopiert:MethodWriterGet the method details.- Angegeben von:
getMethodDetailsin SchnittstelleMethodWriter- Parameter:
methodDetailsHeader- the content representing method details headermethodDetails- the content representing method details- Gibt zurück:
- the method details
-
addSummaryLabel
Beschreibung aus Klasse kopiert:AbstractMemberWriterAdds the summary label for the member.- Angegeben von:
addSummaryLabelin KlasseAbstractMemberWriter- Parameter:
content- the content to which the label will be added
-
getSummaryTableHeader
Beschreibung aus Klasse kopiert:AbstractMemberWriterReturns the summary table header for the member.- Angegeben von:
getSummaryTableHeaderin KlasseAbstractMemberWriter- Parameter:
member- the member to be documented- Gibt zurück:
- the summary table header
-
createSummaryTable
Beschreibung aus Klasse kopiert:AbstractMemberWriterCreates the summary table for this element.The table should be created and initialized if needed, and configured so that it is ready to add content with
Table.addRow(Content[])and similar methods.- Angegeben von:
createSummaryTablein KlasseAbstractMemberWriter- Gibt zurück:
- the summary table
-
addInheritedSummaryLabel
Beschreibung aus Klasse kopiert:AbstractMemberWriterAdds inherited summary label for the member.- Angegeben von:
addInheritedSummaryLabelin KlasseAbstractMemberWriter- Parameter:
typeElement- the type element to which to link tocontent- the content to which the inherited summary label will be added
-
addSummaryType
Beschreibung aus Klasse kopiert:AbstractMemberWriterAdds the summary type for the member.- Angegeben von:
addSummaryTypein KlasseAbstractMemberWriter- Parameter:
member- the member to be documentedcontent- the content to which the type will be added
-
addOverridden
protected static void addOverridden(HtmlDocletWriter writer, TypeMirror overriddenType, ExecutableElement method, Content dl) Adds “overrides” or “specified by” information about a method (if appropriate) into a definition list.- Parameter:
writer- the writer for the elementoverriddenType- the superclassmethod- the methoddl- the list in which to add the information.
-
addImplementsInfo
protected static void addImplementsInfo(HtmlDocletWriter writer, ExecutableElement method, Collection<ExecutableElement> methods, Content dl) Adds “implements” information for a method (if appropriate) into a definition list.- Parameter:
writer- the writer for the methodmethod- the methodmethods- implemented methodsdl- the definition list
-
getReturnType
Get the return type for the given method.- Parameter:
method- the method being documented.- Gibt zurück:
- the return type
-
getMemberHeader
Beschreibung aus Schnittstelle kopiert:MethodWriterGets the member header.- Angegeben von:
getMemberHeaderin SchnittstelleMethodWriter- Gibt zurück:
- the member header
-