Module com.semanticcms.tagreference
Package com.semanticcms.tagreference
Class LinkedSignatureParamsTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
com.semanticcms.tagreference.LinkedSignatureParamsTag
- All Implemented Interfaces:
Serializable,IterationTag,JspTag,Tag
Displays function or method parameters including parentheses, 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, pageContextFields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidsetApiLinks(Map<String, String> apiLinks) voidsetRequireLinks(boolean requireLinks) voidsetShortName(boolean shortName) voidsetSignature(String signature) static voidwriteLinkedSignatureParams(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
-
LinkedSignatureParamsTag
public LinkedSignatureParamsTag()
-
-
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 parameters of.
-
setShortName
public void setShortName(boolean shortName) - Parameters:
shortName- Whentrue, will display class names in short format. Defaults tofalse.
-
writeLinkedSignatureParams
public static void writeLinkedSignatureParams(PageContext pageContext, boolean requireLinks, Map<String, String> apiLinks, String signature, boolean shortName, Appendable out) throws IOException, JspTagException- Throws:
IOExceptionJspTagException
-
doStartTag
- Specified by:
doStartTagin interfaceTag- Overrides:
doStartTagin classTagSupport- Throws:
JspException
-
