src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/builders/MethodBuilder.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
137 buildSignature(methodDocTree); |
137 buildSignature(methodDocTree); |
138 buildDeprecationInfo(methodDocTree); |
138 buildDeprecationInfo(methodDocTree); |
139 buildMethodComments(methodDocTree); |
139 buildMethodComments(methodDocTree); |
140 buildTagInfo(methodDocTree); |
140 buildTagInfo(methodDocTree); |
141 |
141 |
142 methodDetailsTree.addContent(writer.getMethodDoc( |
142 methodDetailsTree.add(writer.getMethodDoc( |
143 methodDocTree, currentMethod == lastElement)); |
143 methodDocTree, currentMethod == lastElement)); |
144 } |
144 } |
145 memberDetailsTree.addContent(writer.getMethodDetails(methodDetailsTree)); |
145 memberDetailsTree.add(writer.getMethodDetails(methodDetailsTree)); |
146 } |
146 } |
147 } |
147 } |
148 |
148 |
149 /** |
149 /** |
150 * Build the signature. |
150 * Build the signature. |
151 * |
151 * |
152 * @param methodDocTree the content tree to which the documentation will be added |
152 * @param methodDocTree the content tree to which the documentation will be added |
153 */ |
153 */ |
154 protected void buildSignature(Content methodDocTree) { |
154 protected void buildSignature(Content methodDocTree) { |
155 methodDocTree.addContent(writer.getSignature(currentMethod)); |
155 methodDocTree.add(writer.getSignature(currentMethod)); |
156 } |
156 } |
157 |
157 |
158 /** |
158 /** |
159 * Build the deprecation information. |
159 * Build the deprecation information. |
160 * |
160 * |