< prev index next >

src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/links/LinkInfo.java

Print this page




  55      * to an executable element.
  56      */
  57     public ExecutableElement executableElement;
  58 
  59     /**
  60      * The Type we want to link to.  Null if we are not linking to a type.
  61      */
  62     public TypeMirror type;
  63 
  64     /**
  65      * True if this is a link to a VarArg.
  66      */
  67     public boolean isVarArg = false;
  68 
  69     /**
  70      * Set this to true to indicate that you are linking to a type parameter.
  71      */
  72     public boolean isTypeBound = false;
  73 
  74     /**






  75      * The label for the link.
  76      */
  77     public Content label;
  78 
  79     /**
  80      * True if the link should be strong.
  81      */
  82     public boolean isStrong = false;
  83 
  84     /**
  85      * True if we should include the type in the link label.  False otherwise.
  86      */
  87     public boolean includeTypeInClassLinkLabel = true;
  88 
  89     /**
  90      * True if we should include the type as separate link.  False otherwise.
  91      */
  92     public boolean includeTypeAsSepLink = false;
  93 
  94     /**


 138         if (label != null && !label.isEmpty()) {
 139             return label;
 140         } else if (isLinkable()) {
 141             Content tlabel = newContent();
 142             tlabel.add(configuration.utils.getSimpleName(typeElement));
 143             return tlabel;
 144         } else {
 145             Content tlabel = newContent();
 146             tlabel.add(configuration.getClassName(typeElement));
 147             return tlabel;
 148         }
 149     }
 150 
 151     @Override
 152     public String toString() {
 153         return "LinkInfo{" + "typeElement=" + typeElement +
 154                 ", executableElement=" + executableElement +
 155                 ", type=" + type +
 156                 ", isVarArg=" + isVarArg +
 157                 ", isTypeBound=" + isTypeBound +

 158                 ", label=" + label +
 159                 ", isStrong=" + isStrong +
 160                 ", includeTypeInClassLinkLabel=" + includeTypeInClassLinkLabel +
 161                 ", includeTypeAsSepLink=" + includeTypeAsSepLink +
 162                 ", excludeTypeBounds=" + excludeTypeBounds +
 163                 ", excludeTypeParameterLinks=" + excludeTypeParameterLinks +
 164                 ", excludeTypeBoundsLinks=" + excludeTypeBoundsLinks +
 165                 ", linkToSelf=" + linkToSelf + '}';
 166     }
 167 }


  55      * to an executable element.
  56      */
  57     public ExecutableElement executableElement;
  58 
  59     /**
  60      * The Type we want to link to.  Null if we are not linking to a type.
  61      */
  62     public TypeMirror type;
  63 
  64     /**
  65      * True if this is a link to a VarArg.
  66      */
  67     public boolean isVarArg = false;
  68 
  69     /**
  70      * Set this to true to indicate that you are linking to a type parameter.
  71      */
  72     public boolean isTypeBound = false;
  73 
  74     /**
  75      * Whether the document element is in a Java 5 declaration
  76      * location or not.
  77      */
  78     public boolean isJava5DeclarationLocation = true;
  79 
  80     /**
  81      * The label for the link.
  82      */
  83     public Content label;
  84 
  85     /**
  86      * True if the link should be strong.
  87      */
  88     public boolean isStrong = false;
  89 
  90     /**
  91      * True if we should include the type in the link label.  False otherwise.
  92      */
  93     public boolean includeTypeInClassLinkLabel = true;
  94 
  95     /**
  96      * True if we should include the type as separate link.  False otherwise.
  97      */
  98     public boolean includeTypeAsSepLink = false;
  99 
 100     /**


 144         if (label != null && !label.isEmpty()) {
 145             return label;
 146         } else if (isLinkable()) {
 147             Content tlabel = newContent();
 148             tlabel.add(configuration.utils.getSimpleName(typeElement));
 149             return tlabel;
 150         } else {
 151             Content tlabel = newContent();
 152             tlabel.add(configuration.getClassName(typeElement));
 153             return tlabel;
 154         }
 155     }
 156 
 157     @Override
 158     public String toString() {
 159         return "LinkInfo{" + "typeElement=" + typeElement +
 160                 ", executableElement=" + executableElement +
 161                 ", type=" + type +
 162                 ", isVarArg=" + isVarArg +
 163                 ", isTypeBound=" + isTypeBound +
 164                 ", isJava5DeclarationLocation=" + isJava5DeclarationLocation +
 165                 ", label=" + label +
 166                 ", isStrong=" + isStrong +
 167                 ", includeTypeInClassLinkLabel=" + includeTypeInClassLinkLabel +
 168                 ", includeTypeAsSepLink=" + includeTypeAsSepLink +
 169                 ", excludeTypeBounds=" + excludeTypeBounds +
 170                 ", excludeTypeParameterLinks=" + excludeTypeParameterLinks +
 171                 ", excludeTypeBoundsLinks=" + excludeTypeBoundsLinks +
 172                 ", linkToSelf=" + linkToSelf + '}';
 173     }
 174 }
< prev index next >