Klasse HtmlLinkInfo
java.lang.Object
org.jdrupes.mdoclet.internal.doclets.formats.html.HtmlLinkInfo
HTML-specific information about a link.
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypKlasseBeschreibungstatic enum
Enumeration of different kinds of links. -
Konstruktorübersicht
KonstruktorBeschreibungHtmlLinkInfo
(HtmlConfiguration configuration, HtmlLinkInfo.Kind context, ExecutableElement ee) Construct a LinkInfo object.HtmlLinkInfo
(HtmlConfiguration configuration, HtmlLinkInfo.Kind context, TypeElement typeElement) Construct a LinkInfo object.HtmlLinkInfo
(HtmlConfiguration configuration, HtmlLinkInfo.Kind context, TypeMirror type) Construct a LinkInfo object. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
Gibt true if line break opportunities should be added to type parameters zurück.addLineBreakOpportunitiesInTypeParameters
(boolean addLineBreakOpportunities) Sets the addLineBreakOpportunitiesInTypeParameters flag for this link.boolean
Gibt true if type parameters should be separated by line breaks zurück.addLineBreaksInTypeParameters
(boolean addLineBreaksInTypeParameters) Sets the addLineBreaksInTypeParameters flag for this link.forType
(TypeMirror type) Creates a copy of this HtmlLinkInfo instance with a different TypeMirror.Set the fragment specifier for the link.getClassLinkLabel
(BaseConfiguration configuration) Return the label for this class link.Gibt the link context zurück.The executable element we want to link to.Gibt the fragment of the link zurück.getLabel()
Gibt the label for the link zurück.getStyle()
Gibt the optional style for the link zurück.Gibt the member this link points to (if any) zurück.getType()
The Type we want to link to.The class we want to link to.boolean
Return true if this link is linkable and false if we can’t link to the desired place.boolean
Gibt true iff the preview flags should be skipped for this link zurück.boolean
isVarArg()
Gibt true if this is a link to a vararg member zurück.label
(CharSequence label) Set the label for the link.Set the label for the link.boolean
Gibt true if we should generate links to the current page zurück.linkToSelf
(boolean linkToSelf) Set the linkToSelf flag for this link.boolean
Gibt true if type parameters should be rendered as links zurück.protected Content
Gibt a new instance of a content object zurück.void
setTypeElement
(TypeElement typeElement) Sets the typeElementboolean
Gibt true if we should print the type bounds for the type parameter zurück.void
showTypeBounds
(boolean showTypeBounds) Set the showTypeBounds flag for this linkboolean
Gibt true if annotations on type parameters should be shown zurück.showTypeParameterAnnotations
(boolean showTypeParameterAnnotations) Set the showTypeParameterAnnotations flag for this link.boolean
Returns true if links to declared types should include type parameters.skipPreview
(boolean skipPreview) Set whether or not the preview flags should be skipped for this link.Sets the style to be used for the link.targetMember
(Element el) Set the member this link points to (if any).toString()
varargs
(boolean varargs) Set whether or not this is a link to a varargs parameter.
-
Konstruktordetails
-
HtmlLinkInfo
public HtmlLinkInfo(HtmlConfiguration configuration, HtmlLinkInfo.Kind context, ExecutableElement ee) Construct a LinkInfo object.- Parameter:
configuration
- the configuration data for the docletcontext
- the context of the link.ee
- the member to link to.
-
HtmlLinkInfo
public HtmlLinkInfo(HtmlConfiguration configuration, HtmlLinkInfo.Kind context, TypeElement typeElement) Construct a LinkInfo object.- Parameter:
configuration
- the configuration data for the docletcontext
- the context of the link.typeElement
- the class to link to.
-
HtmlLinkInfo
Construct a LinkInfo object.- Parameter:
configuration
- the configuration data for the docletcontext
- the context of the link.type
- the class to link to.
-
-
Methodendetails
-
forType
Creates a copy of this HtmlLinkInfo instance with a different TypeMirror.This is used for contained types such as type parameters or array components.
- Parameter:
type
- the type mirror- Gibt zurück:
- the new link info
-
setTypeElement
Sets the typeElement- Parameter:
typeElement
- the new typeElement object
-
getTypeElement
The class we want to link to.Null if we are not linking to a class.
-
getExecutableElement
The executable element we want to link to.Null if we are not linking to an executable element.
-
getType
The Type we want to link to.Null if we are not linking to a type.
-
label
Set the label for the link.- Parameter:
label
- plain-text label for the link- Gibt zurück:
- this object
-
label
Set the label for the link.- Parameter:
label
- the new value- Gibt zurück:
- this object
-
getLabel
Gibt the label for the link zurück.- Gibt zurück:
- the label for the link
-
style
Sets the style to be used for the link.- Parameter:
style
- the new style value- Gibt zurück:
- this object
-
getStyle
Gibt the optional style for the link zurück.- Gibt zurück:
- the optional style for the link
-
varargs
Set whether or not this is a link to a varargs parameter.- Parameter:
varargs
- the new value- Gibt zurück:
- this object
-
isVarArg
Gibt true if this is a link to a vararg member zurück.- Gibt zurück:
- true if this is a link to a vararg member
-
fragment
Set the fragment specifier for the link.- Parameter:
fragment
- the new fragment value- Gibt zurück:
- this object
-
getFragment
Gibt the fragment of the link zurück.- Gibt zurück:
- the fragment of the link
-
addLineBreaksInTypeParameters
Sets the addLineBreaksInTypeParameters flag for this link.- Parameter:
addLineBreaksInTypeParameters
- the new value- Gibt zurück:
- this object
-
addLineBreaksInTypeParameters
Gibt true if type parameters should be separated by line breaks zurück.- Gibt zurück:
- true if type parameters should be separated by line breaks
-
addLineBreakOpportunitiesInTypeParameters
Sets the addLineBreakOpportunitiesInTypeParameters flag for this link.- Parameter:
addLineBreakOpportunities
- the new value- Gibt zurück:
- this object
-
addLineBreakOpportunitiesInTypeParameters
Gibt true if line break opportunities should be added to type parameters zurück.- Gibt zurück:
- true if line break opportunities should be added to type parameters
-
linkToSelf
Set the linkToSelf flag for this link.- Parameter:
linkToSelf
- the new value- Gibt zurück:
- this object
-
linkToSelf
Gibt true if we should generate links to the current page zurück.- Gibt zurück:
- true if we should generate links to the current page
-
linkTypeParameters
Gibt true if type parameters should be rendered as links zurück.- Gibt zurück:
- true if type parameters should be rendered as links
-
showTypeBounds
Set the showTypeBounds flag for this link- Parameter:
showTypeBounds
- the new value
-
showTypeBounds
Gibt true if we should print the type bounds for the type parameter zurück.- Gibt zurück:
- true if we should print the type bounds for the type parameter
-
showTypeParameterAnnotations
Set the showTypeParameterAnnotations flag for this link.- Parameter:
showTypeParameterAnnotations
- the new value- Gibt zurück:
- this object
-
showTypeParameterAnnotations
Gibt true if annotations on type parameters should be shown zurück.- Gibt zurück:
- true if annotations on type parameters should be shown
-
targetMember
Set the member this link points to (if any).- Parameter:
el
- the new member value- Gibt zurück:
- this object
-
getTargetMember
Gibt the member this link points to (if any) zurück.- Gibt zurück:
- the member this link points to (if any)
-
skipPreview
Set whether or not the preview flags should be skipped for this link.- Parameter:
skipPreview
- the new value- Gibt zurück:
- this object
-
isSkipPreview
Gibt true iff the preview flags should be skipped for this link zurück.- Gibt zurück:
- true iff the preview flags should be skipped for this link
-
getContext
Gibt the link context zurück.- Gibt zurück:
- the link context
-
isLinkable
Return true if this link is linkable and false if we can’t link to the desired place.- Gibt zurück:
- true if this link is linkable and false if we can’t link to the desired place.
-
showTypeParameters
Returns true if links to declared types should include type parameters.- Gibt zurück:
- true if type parameter links should be included
-
getClassLinkLabel
Return the label for this class link.- Parameter:
configuration
- the current configuration of the doclet.- Gibt zurück:
- the label for this class link.
-
newContent
Gibt a new instance of a content object zurück.- Gibt zurück:
- a new instance of a content object
-
toString
-