126 * @return a content object for the signature |
126 * @return a content object for the signature |
127 */ |
127 */ |
128 public Content getSignature(MethodDoc method) { |
128 public Content getSignature(MethodDoc method) { |
129 Content pre = new HtmlTree(HtmlTag.PRE); |
129 Content pre = new HtmlTree(HtmlTag.PRE); |
130 writer.addAnnotationInfo(method, pre); |
130 writer.addAnnotationInfo(method, pre); |
|
131 int annotationLength = pre.charCount(); |
131 addModifiers(method, pre); |
132 addModifiers(method, pre); |
132 addTypeParameters(method, pre); |
133 addTypeParameters(method, pre); |
133 addReturnType(method, pre); |
134 addReturnType(method, pre); |
134 if (configuration.linksource) { |
135 if (configuration.linksource) { |
135 Content methodName = new StringContent(method.name()); |
136 Content methodName = new StringContent(method.name()); |
136 writer.addSrcLink(method, methodName, pre); |
137 writer.addSrcLink(method, methodName, pre); |
137 } else { |
138 } else { |
138 addName(method.name(), pre); |
139 addName(method.name(), pre); |
139 } |
140 } |
140 int indent = pre.charCount(); |
141 int indent = pre.charCount() - annotationLength; |
141 addParameters(method, pre, indent); |
142 addParameters(method, pre, indent); |
142 addExceptions(method, pre, indent); |
143 addExceptions(method, pre, indent); |
143 return pre; |
144 return pre; |
144 } |
145 } |
145 |
146 |