Class ParamTaglet
java.lang.Object
gw.gosudoc.com.sun.tools.doclets.internal.toolkit.taglets.BaseTaglet
gw.gosudoc.com.sun.tools.doclets.internal.toolkit.taglets.ParamTaglet
- All Implemented Interfaces:
InheritableTaglet,Taglet
Deprecated.
A taglet that represents the @param tag.
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 inherited from class gw.gosudoc.com.sun.tools.doclets.internal.toolkit.taglets.BaseTaglet
name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate ContentgetInheritedTagletOutput(boolean isNonTypeParams, Doc holder, TagletWriter writer, Object[] formalParameters, Set<String> alreadyDocumented) Deprecated.Loop through each indivitual parameter.getRankMap(Object[] params) Deprecated.Given an array ofParameters, return a name/rank number map.private ContentgetTagletOutput(boolean isNonTypeParams, Doc holder, TagletWriter writer, Object[] formalParameters, ParamTag[] paramTags) Deprecated.Given an array ofParamTags,return its string representation.getTagletOutput(Doc holder, TagletWriter writer) Deprecated.Given an array ofParamTags,return its string representation.booleaninField()Deprecated.Return true if thisTagletis used in field documentation.voidinherit(DocFinder.Input input, DocFinder.Output output) Deprecated.Given anDocFinder.Outputobject, set its values with the appropriate information to inherit documentation.booleaninMethod()Deprecated.Return true if thisTagletis used in method documentation.booleanDeprecated.Return true if thisTagletis used in overview documentation.booleanDeprecated.Return true if thisTagletis used in package documentation.booleaninType()Deprecated.Return true if thisTagletis used in type documentation (classes or interfaces).booleanDeprecated.Return true if thisTagletis an inline tag.private ContentprocessParamTag(boolean isNonTypeParams, TagletWriter writer, ParamTag paramTag, String name, boolean isFirstParam) Deprecated.Convert the individual ParamTag into Content.private ContentprocessParamTags(boolean isNonTypeParams, ParamTag[] paramTags, Map<String, String> rankMap, TagletWriter writer, Set<String> alreadyDocumented) Deprecated.Given an array ofTags representing this custom tag, return its string representation.Methods inherited from class gw.gosudoc.com.sun.tools.doclets.internal.toolkit.taglets.BaseTaglet
getName, getTagletOutput, inConstructorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gw.gosudoc.com.sun.tools.doclets.internal.toolkit.taglets.Taglet
getName, getTagletOutput, inConstructor, toString
-
Constructor Details
-
ParamTaglet
public ParamTaglet()Deprecated.Construct a ParamTaglet.
-
-
Method Details
-
getRankMap
Deprecated.Given an array ofParameters, return a name/rank number map. If the array is null, then null is returned.- Parameters:
params- The array of parmeters (from type or executable member) to check.- Returns:
- a name-rank number map.
-
inherit
Deprecated.Given anDocFinder.Outputobject, set its values with the appropriate information to inherit documentation.- Specified by:
inheritin interfaceInheritableTaglet- Parameters:
input- the input for documentation search.output- the output for documentation search.
-
inField
public boolean inField()Deprecated.Return true if thisTagletis used in field documentation.- Specified by:
inFieldin interfaceTaglet- Overrides:
inFieldin classBaseTaglet- Returns:
- true if this
Tagletis used in field documentation and false otherwise.
-
inMethod
public boolean inMethod()Deprecated.Return true if thisTagletis used in method documentation.- Specified by:
inMethodin interfaceTaglet- Overrides:
inMethodin classBaseTaglet- Returns:
- true if this
Tagletis used in method documentation and false otherwise.
-
inOverview
public boolean inOverview()Deprecated.Return true if thisTagletis used in overview documentation.- Specified by:
inOverviewin interfaceTaglet- Overrides:
inOverviewin classBaseTaglet- Returns:
- true if this
Tagletis used in method documentation and false otherwise.
-
inPackage
public boolean inPackage()Deprecated.Return true if thisTagletis used in package documentation.- Specified by:
inPackagein interfaceTaglet- Overrides:
inPackagein classBaseTaglet- Returns:
- true if this
Tagletis used in package documentation and false otherwise.
-
inType
public boolean inType()Deprecated.Return true if thisTagletis used in type documentation (classes or interfaces).- Specified by:
inTypein interfaceTaglet- Overrides:
inTypein classBaseTaglet- Returns:
- true if this
Tagletis used in type documentation and false otherwise.
-
isInlineTag
public boolean isInlineTag()Deprecated.Return true if thisTagletis an inline tag.- Specified by:
isInlineTagin interfaceTaglet- Overrides:
isInlineTagin classBaseTaglet- Returns:
- true if this
Tagletis an inline tag and false otherwise.
-
getTagletOutput
Deprecated.Given an array ofParamTags,return its string representation.- Specified by:
getTagletOutputin interfaceTaglet- Overrides:
getTagletOutputin classBaseTaglet- Parameters:
holder- the member that holds the param tags.writer- the TagletWriter that will write this tag.- Returns:
- the TagletOutput representation of these
ParamTags.
-
getTagletOutput
private Content getTagletOutput(boolean isNonTypeParams, Doc holder, TagletWriter writer, Object[] formalParameters, ParamTag[] paramTags) Deprecated.Given an array ofParamTags,return its string representation. Try to inherit the param tags that are missing.- Parameters:
holder- the doc that holds the param tags.writer- the TagletWriter that will write this tag.formalParameters- The array of parmeters (from type or executable member) to check.- Returns:
- the TagletOutput representation of these
ParamTags.
-
getInheritedTagletOutput
private Content getInheritedTagletOutput(boolean isNonTypeParams, Doc holder, TagletWriter writer, Object[] formalParameters, Set<String> alreadyDocumented) Deprecated.Loop through each indivitual parameter. It it does not have a corresponding param tag, try to inherit it. -
processParamTags
private Content processParamTags(boolean isNonTypeParams, ParamTag[] paramTags, Map<String, String> rankMap, TagletWriter writer, Set<String> alreadyDocumented) Deprecated.Given an array ofTags representing this custom tag, return its string representation. Print a warning for param tags that do not map to parameters. Print a warning for param tags that are duplicated.- Parameters:
paramTags- the array ofParamTags to convert.writer- the TagletWriter that will write this tag.alreadyDocumented- the set of exceptions that have already been documented.rankMap- aMapwhich holds ordering information about the parameters.rankMap- aMapwhich holds a mapping of a rank of a parameter to its name. This is used to ensure that the right name is used when parameter documentation is inherited.- Returns:
- the Content representation of this
Tag.
-
processParamTag
private Content processParamTag(boolean isNonTypeParams, TagletWriter writer, ParamTag paramTag, String name, boolean isFirstParam) Deprecated.Convert the individual ParamTag into Content.- Parameters:
isNonTypeParams- true if this is just a regular param tag. False if this is a type param tag.writer- the taglet writer for output writing.paramTag- the tag whose inline tags will be printed.name- the name of the parameter. We can't rely on the name in the param tag because we might be inheriting documentation.isFirstParam- true if this is the first param tag being printed.
-