protected void getLinkForWildcard ( Content link , LinkInfo linkInfo , Type type ) { linkInfo . isTypeBound = true ; link . addContent ( "?" ) ; //$NON-NLS-1$ final WildcardType wildcardType = type . asWildcardType ( ) ; final Type [ ] extendsBounds = wildcardType . extendsBounds ( ) ; final SARLFeatureAccess kw = Utils . getKeywords ( ) ; for ( int i = 0 ; i < extendsBounds . length ; i ++ ) { link . addContent ( i > 0 ? kw . getCommaKeyword ( ) + " " //$NON-NLS-1$ : " " + kw . getExtendsKeyword ( ) + " " ) ; //$NON-NLS-1$ //$NON-NLS-2$ setBoundsLinkInfo ( linkInfo , extendsBounds [ i ] ) ; link . addContent ( getLink ( linkInfo ) ) ; } final Type [ ] superBounds = wildcardType . superBounds ( ) ; for ( int i = 0 ; i < superBounds . length ; i ++ ) { link . addContent ( i > 0 ? kw . getCommaKeyword ( ) + " " //$NON-NLS-1$ : " " + kw . getSuperKeyword ( ) + " " ) ; //$NON-NLS-1$ //$NON-NLS-2$ setBoundsLinkInfo ( linkInfo , superBounds [ i ] ) ; link . addContent ( getLink ( linkInfo ) ) ; } }
Build the link for the wildcard .