@@ -763,7 +763,7 @@ public Content getLink(LinkInfoImpl linkInfo) {
763
763
*/
764
764
public Content getTypeParameterLinks (LinkInfoImpl linkInfo ) {
765
765
LinkFactoryImpl factory = new LinkFactoryImpl (this );
766
- return factory .getTypeParameterLinks (linkInfo , false );
766
+ return factory .getTypeParameterLinks (linkInfo );
767
767
}
768
768
769
769
/*************************************************************
@@ -853,18 +853,16 @@ public void addPreQualifiedClassLink(LinkInfoImpl.Kind context, TypeElement type
853
853
* link label.
854
854
*
855
855
* @param typeElement the class to link to.
856
- * @param isStrong true if the link should be strong.
857
856
* @return the link with the package portion of the label in plain text.
858
857
*/
859
- public Content getPreQualifiedClassLink (LinkInfoImpl .Kind context ,
860
- TypeElement typeElement , boolean isStrong ) {
858
+ public Content getPreQualifiedClassLink (LinkInfoImpl .Kind context , TypeElement typeElement ) {
861
859
ContentBuilder classlink = new ContentBuilder ();
862
860
PackageElement pkg = utils .containingPackage (typeElement );
863
861
if (pkg != null && ! configuration .shouldExcludeQualifier (pkg .getSimpleName ().toString ())) {
864
862
classlink .add (getEnclosingPackageName (typeElement ));
865
863
}
866
864
classlink .add (getLink (new LinkInfoImpl (configuration ,
867
- context , typeElement ).label (utils .getSimpleName (typeElement )). strong ( isStrong ) ));
865
+ context , typeElement ).label (utils .getSimpleName (typeElement ))));
868
866
return classlink ;
869
867
}
870
868
@@ -934,65 +932,55 @@ public void addPreQualifiedStrongClassLink(LinkInfoImpl.Kind context, TypeElemen
934
932
*/
935
933
public Content getDocLink (LinkInfoImpl .Kind context , Element element , CharSequence label ) {
936
934
return getDocLink (context , utils .getEnclosingTypeElement (element ), element ,
937
- new StringContent (label ));
935
+ new StringContent (label ), false );
938
936
}
939
937
940
938
/**
941
939
* Return the link for the given member.
942
940
*
943
941
* @param context the id of the context where the link will be printed.
942
+ * @param typeElement the typeElement that we should link to. This is not
943
+ * not necessarily the type containing element since we may be
944
+ * inheriting comments.
944
945
* @param element the member being linked to.
945
946
* @param label the label for the link.
946
- * @param strong true if the link should be strong.
947
947
* @return the link for the given member.
948
948
*/
949
- public Content getDocLink (LinkInfoImpl .Kind context , Element element , CharSequence label ,
950
- boolean strong ) {
951
- return getDocLink (context , utils . getEnclosingTypeElement ( element ) , element , label , strong );
949
+ public Content getDocLink (LinkInfoImpl .Kind context , TypeElement typeElement , Element element ,
950
+ CharSequence label ) {
951
+ return getDocLink (context , typeElement , element , label , false );
952
952
}
953
953
954
954
/**
955
955
* Return the link for the given member.
956
956
*
957
957
* @param context the id of the context where the link will be printed.
958
- * @param typeElement the typeElement that we should link to. This is not
959
- necessarily equal to element.containingClass(). We may be
960
- inheriting comments.
958
+ * @param typeElement the typeElement that we should link to. This is not
959
+ * not necessarily the type containing element since we may be
960
+ * inheriting comments.
961
961
* @param element the member being linked to.
962
962
* @param label the label for the link.
963
- * @param strong true if the link should be strong.
964
963
* @return the link for the given member.
965
964
*/
966
965
public Content getDocLink (LinkInfoImpl .Kind context , TypeElement typeElement , Element element ,
967
- CharSequence label , boolean strong ) {
968
- return getDocLink (context , typeElement , element , label , strong , false );
969
- }
970
-
971
- public Content getDocLink (LinkInfoImpl .Kind context , TypeElement typeElement , Element element ,
972
- Content label , boolean strong ) {
973
- return getDocLink (context , typeElement , element , label , strong , false );
966
+ CharSequence label , boolean isProperty ) {
967
+ return getDocLink (context , typeElement , element , new StringContent (label ), isProperty );
974
968
}
975
969
976
970
/**
977
971
* Return the link for the given member.
978
972
*
979
973
* @param context the id of the context where the link will be printed.
980
- * @param typeElement the typeElement that we should link to. This is not
981
- necessarily equal to element.containingClass(). We may be
982
- inheriting comments.
974
+ * @param typeElement the typeElement that we should link to. This is not
975
+ * not necessarily the type containing element since we may be
976
+ * inheriting comments.
983
977
* @param element the member being linked to.
984
978
* @param label the label for the link.
985
- * @param strong true if the link should be strong.
986
979
* @param isProperty true if the element parameter is a JavaFX property.
987
980
* @return the link for the given member.
988
981
*/
989
982
public Content getDocLink (LinkInfoImpl .Kind context , TypeElement typeElement , Element element ,
990
- CharSequence label , boolean strong , boolean isProperty ) {
991
- return getDocLink (context , typeElement , element , new StringContent (label ), strong , isProperty );
992
- }
993
-
994
- public Content getDocLink (LinkInfoImpl .Kind context , TypeElement typeElement , Element element ,
995
- Content label , boolean strong , boolean isProperty ) {
983
+ Content label , boolean isProperty ) {
996
984
if (!utils .isLinkable (typeElement , element )) {
997
985
return label ;
998
986
}
@@ -1003,52 +991,19 @@ public Content getDocLink(LinkInfoImpl.Kind context, TypeElement typeElement, El
1003
991
return getLink (new LinkInfoImpl (configuration , context , typeElement )
1004
992
.label (label )
1005
993
.where (id .name ())
1006
- .targetMember (element )
1007
- .strong (strong ));
994
+ .targetMember (element ));
1008
995
}
1009
996
1010
997
if (utils .isVariableElement (element ) || utils .isTypeElement (element )) {
1011
998
return getLink (new LinkInfoImpl (configuration , context , typeElement )
1012
999
.label (label )
1013
1000
.where (element .getSimpleName ().toString ())
1014
- .targetMember (element )
1015
- .strong (strong ));
1001
+ .targetMember (element ));
1016
1002
}
1017
1003
1018
1004
return label ;
1019
1005
}
1020
1006
1021
- /**
1022
- * Return the link for the given member.
1023
- *
1024
- * @param context the id of the context where the link will be added
1025
- * @param typeElement the typeElement that we should link to. This is not
1026
- necessarily equal to element.containingClass(). We may be
1027
- inheriting comments
1028
- * @param element the member being linked to
1029
- * @param label the label for the link
1030
- * @return the link for the given member
1031
- */
1032
- public Content getDocLink (LinkInfoImpl .Kind context , TypeElement typeElement , Element element ,
1033
- Content label ) {
1034
- if (!(utils .isIncluded (element ) || utils .isLinkable (typeElement ))) {
1035
- return label ;
1036
- } else if (utils .isExecutableElement (element )) {
1037
- ExecutableElement emd = (ExecutableElement ) element ;
1038
- return getLink (new LinkInfoImpl (configuration , context , typeElement )
1039
- .label (label )
1040
- .where (htmlIds .forMember (emd ).name ())
1041
- .targetMember (element ));
1042
- } else if (utils .isVariableElement (element ) || utils .isTypeElement (element )) {
1043
- return getLink (new LinkInfoImpl (configuration , context , typeElement )
1044
- .label (label )
1045
- .where (element .getSimpleName ().toString ())
1046
- .targetMember (element ));
1047
- } else {
1048
- return label ;
1049
- }
1050
- }
1051
-
1052
1007
public Content seeTagToContent (Element element , DocTree see ) {
1053
1008
Kind kind = see .getKind ();
1054
1009
if (!(kind == LINK || kind == SEE || kind == LINK_PLAIN )) {
@@ -1900,8 +1855,7 @@ private void addAnnotations(TypeElement annotationDoc, LinkInfoImpl linkInfo,
1900
1855
}
1901
1856
String simpleName = element .getSimpleName ().toString ();
1902
1857
if (multipleValues || !"value" .equals (simpleName )) { // Omit "value=" where unnecessary
1903
- annotation .add (getDocLink (LinkInfoImpl .Kind .ANNOTATION ,
1904
- element , simpleName , false ));
1858
+ annotation .add (getDocLink (LinkInfoImpl .Kind .ANNOTATION , element , simpleName ));
1905
1859
annotation .add ("=" );
1906
1860
}
1907
1861
AnnotationValue annotationValue = map .get (element );
@@ -2015,8 +1969,7 @@ public Content visitAnnotation(AnnotationMirror a, Void p) {
2015
1969
}
2016
1970
@ Override
2017
1971
public Content visitEnumConstant (VariableElement c , Void p ) {
2018
- return getDocLink (LinkInfoImpl .Kind .ANNOTATION ,
2019
- c , c .getSimpleName (), false );
1972
+ return getDocLink (LinkInfoImpl .Kind .ANNOTATION , c , c .getSimpleName ());
2020
1973
}
2021
1974
@ Override
2022
1975
public Content visitArray (List <? extends AnnotationValue > vals , Void p ) {
0 commit comments