82 Doc owner = type.asTypeVariable().owner(); |
82 Doc owner = type.asTypeVariable().owner(); |
83 if ((! linkInfo.excludeTypeParameterLinks) && |
83 if ((! linkInfo.excludeTypeParameterLinks) && |
84 owner instanceof ClassDoc) { |
84 owner instanceof ClassDoc) { |
85 linkInfo.classDoc = (ClassDoc) owner; |
85 linkInfo.classDoc = (ClassDoc) owner; |
86 linkInfo.label = type.typeName(); |
86 linkInfo.label = type.typeName(); |
87 linkOutput.append(getClassLink((LinkInfo) linkInfo)); |
87 linkOutput.append(getClassLink(linkInfo)); |
88 } else { |
88 } else { |
89 //No need to link method type parameters. |
89 //No need to link method type parameters. |
90 linkInfo.displayLength += type.typeName().length(); |
90 linkInfo.displayLength += type.typeName().length(); |
91 linkOutput.append(type.typeName()); |
91 linkOutput.append(type.typeName()); |
92 } |
92 } |
111 linkOutput.append(type.typeName()); |
111 linkOutput.append(type.typeName()); |
112 linkOutput.append(getTypeParameterLinks(linkInfo)); |
112 linkOutput.append(getTypeParameterLinks(linkInfo)); |
113 return linkOutput; |
113 return linkOutput; |
114 } else { |
114 } else { |
115 linkInfo.classDoc = type.asClassDoc(); |
115 linkInfo.classDoc = type.asClassDoc(); |
116 linkOutput = getClassLink((LinkInfo) linkInfo); |
116 linkOutput = getClassLink(linkInfo); |
117 if (linkInfo.includeTypeAsSepLink) { |
117 if (linkInfo.includeTypeAsSepLink) { |
118 linkOutput.append(getTypeParameterLinks(linkInfo, false)); |
118 linkOutput.append(getTypeParameterLinks(linkInfo, false)); |
119 } |
119 } |
120 } |
120 } |
121 } |
121 } |
134 linkOutput.append(type.dimension()); |
134 linkOutput.append(type.dimension()); |
135 } |
135 } |
136 return linkOutput; |
136 return linkOutput; |
137 } else if (linkInfo.classDoc != null) { |
137 } else if (linkInfo.classDoc != null) { |
138 //Just a class link |
138 //Just a class link |
139 LinkOutput linkOutput = getClassLink((LinkInfo) linkInfo); |
139 LinkOutput linkOutput = getClassLink(linkInfo); |
140 if (linkInfo.includeTypeAsSepLink) { |
140 if (linkInfo.includeTypeAsSepLink) { |
141 linkOutput.append(getTypeParameterLinks(linkInfo, false)); |
141 linkOutput.append(getTypeParameterLinks(linkInfo, false)); |
142 } |
142 } |
143 return linkOutput; |
143 return linkOutput; |
144 } else { |
144 } else { |