Module com.semanticcms.tagreference
Package com.semanticcms.tagreference
Class LinkedSignatureReturnTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
com.semanticcms.tagreference.LinkedSignatureReturnTag
- All Implemented Interfaces:
Serializable
,IterationTag
,JspTag
,Tag
Displays a function or method signature return type, possibly linked to javadocs apis.
Supports arrays …[]
and generics <…[, …]>
, possibly nested.
- See Also:
-
Field Summary
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
void
setApiLinks
(Map<String, String> apiLinks) void
setRequireLinks
(boolean requireLinks) void
setShortName
(boolean shortName) void
setSignature
(String signature) static void
writeLinkedSignatureReturn
(PageContext pageContext, boolean requireLinks, Map<String, String> apiLinks, String signature, boolean shortName, Appendable out) Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
LinkedSignatureReturnTag
public LinkedSignatureReturnTag()
-
-
Method Details
-
setRequireLinks
public void setRequireLinks(boolean requireLinks) - Parameters:
requireLinks
- Whentrue
, will fail when a class does not map to a package in apiLinks. Defaults tofalse
.
-
setApiLinks
- Parameters:
apiLinks
- The mapping of Java package name (with optional trailing'.'
) to javadoc prefixes (including trailing'/'
).
-
setSignature
- Parameters:
signature
- The signature to display the return type of.
-
setShortName
public void setShortName(boolean shortName) - Parameters:
shortName
- Whentrue
, will display class names in short format. Defaults tofalse
.
-
writeLinkedSignatureReturn
public static void writeLinkedSignatureReturn(PageContext pageContext, boolean requireLinks, Map<String, String> apiLinks, String signature, boolean shortName, Appendable out) throws IOException, JspTagException- Throws:
IOException
JspTagException
-
doStartTag
- Specified by:
doStartTag
in interfaceTag
- Overrides:
doStartTag
in classTagSupport
- Throws:
JspException
-