Class BaseDocLink
java.lang.Object
io.github.mmm.code.base.doc.BaseDocLink
- All Implemented Interfaces:
io.github.mmm.code.api.doc.CodeDocLink
Base implementation of
CodeDocLink.- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
Constructor Details
-
BaseDocLink
public BaseDocLink(String value, char separator, String owningType, Function<io.github.mmm.code.api.doc.CodeDocLink, String> urlProvider, Function<io.github.mmm.code.api.doc.CodeDocLink, Object> valueProvider) The constructor.- Parameters:
value- the content of the link tag ("@{link «value»}").separator- the package separator character.owningType- the (qualified) name of the owning type.urlProvider- theFunctionto resolve theURL.valueProvider- theFunctionto resolve thelink value.
-
-
Method Details
-
getSimpleName
- Specified by:
getSimpleNamein interfaceio.github.mmm.code.api.doc.CodeDocLink- Returns:
- the
simple nameof the linked type.
-
getQualifiedName
- Specified by:
getQualifiedNamein interfaceio.github.mmm.code.api.doc.CodeDocLink- Returns:
- the
qualified nameof the linked type. May benullif unqualified name was given. In such case it has to be looked up viaimports.
-
getAnchor
- Specified by:
getAnchorin interfaceio.github.mmm.code.api.doc.CodeDocLink- Returns:
- the optional linked anchor or
nullfor none.
-
getMethodLink
public io.github.mmm.code.api.doc.CodeDocMethodLink getMethodLink()- Specified by:
getMethodLinkin interfaceio.github.mmm.code.api.doc.CodeDocLink- Returns:
- the optional
BaseDocMethodLinkif theanchoris a method reference ornullfor none.
-
getLinkedValue
- Specified by:
getLinkedValuein interfaceio.github.mmm.code.api.doc.CodeDocLink
-
getLinkUrl
- Specified by:
getLinkUrlin interfaceio.github.mmm.code.api.doc.CodeDocLink
-
getText
- Specified by:
getTextin interfaceio.github.mmm.code.api.doc.CodeDocLink- Returns:
- the text of the link.
-
toString
-