src/share/classes/com/sun/tools/doclets/formats/html/MethodWriterImpl.java

changeset 2415
7ceaee0e497b
parent 2413
fe033d997ddf
child 2525
2eb010b6cb22
equal deleted inserted replaced
2414:17ce329d7bd0 2415:7ceaee0e497b
1 /* 1 /*
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2014, 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
330 dl.addContent(dd); 330 dl.addContent(dd);
331 } 331 }
332 } 332 }
333 333
334 /** 334 /**
335 * Parse the <Code> tag and return the text.
336 */
337 protected String parseCodeTag(String tag){
338 if(tag == null){
339 return "";
340 }
341
342 String lc = StringUtils.toLowerCase(tag);
343 int begin = lc.indexOf("<code>");
344 int end = lc.indexOf("</code>");
345 if(begin == -1 || end == -1 || end <= begin){
346 return tag;
347 } else {
348 return tag.substring(begin + 6, end);
349 }
350 }
351
352 /**
353 * {@inheritDoc} 335 * {@inheritDoc}
354 */ 336 */
355 protected static void addImplementsInfo(HtmlDocletWriter writer, 337 protected static void addImplementsInfo(HtmlDocletWriter writer,
356 MethodDoc method, Content dl) { 338 MethodDoc method, Content dl) {
357 if(writer.configuration.nocomment){ 339 if(writer.configuration.nocomment){

mercurial