langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/links/LinkInfo.java
changeset 45417 f7479ee8de69
parent 35426 374342e56a56
equal deleted inserted replaced
45416:0d8bb33bdfa7 45417:f7479ee8de69
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2017, 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
    27 
    27 
    28 import javax.lang.model.element.ExecutableElement;
    28 import javax.lang.model.element.ExecutableElement;
    29 import javax.lang.model.element.TypeElement;
    29 import javax.lang.model.element.TypeElement;
    30 import javax.lang.model.type.TypeMirror;
    30 import javax.lang.model.type.TypeMirror;
    31 
    31 
    32 import jdk.javadoc.internal.doclets.toolkit.Configuration;
    32 import jdk.javadoc.internal.doclets.toolkit.BaseConfiguration;
    33 import jdk.javadoc.internal.doclets.toolkit.Content;
    33 import jdk.javadoc.internal.doclets.toolkit.Content;
    34 
    34 
    35 /**
    35 /**
    36  * Encapsulates information about a link.
    36  * Encapsulates information about a link.
    37  *
    37  *
   138      * Return the label for this class link.
   138      * Return the label for this class link.
   139      *
   139      *
   140      * @param configuration the current configuration of the doclet.
   140      * @param configuration the current configuration of the doclet.
   141      * @return the label for this class link.
   141      * @return the label for this class link.
   142      */
   142      */
   143     public Content getClassLinkLabel(Configuration configuration) {
   143     public Content getClassLinkLabel(BaseConfiguration configuration) {
   144         if (label != null && !label.isEmpty()) {
   144         if (label != null && !label.isEmpty()) {
   145             return label;
   145             return label;
   146         } else if (isLinkable()) {
   146         } else if (isLinkable()) {
   147             Content tlabel = newContent();
   147             Content tlabel = newContent();
   148             tlabel.addContent(configuration.utils.getSimpleName(typeElement));
   148             tlabel.addContent(configuration.utils.getSimpleName(typeElement));