private String getTypeString ( Type type ) { String typeQualifiedName = type . qualifiedTypeName ( ) . replaceFirst ( "^java\\.lang\\." , "" ) ; typeQualifiedName = typeQualifiedName . replaceFirst ( "^com\\.qspin\\.qtaste\\.testsuite\\.(QTaste\\w*Exception)" , "$1" ) ; String typeDocFileName = null ; if ( typeQualifiedName . startsWith ( "com.qspin." ) ) { String javaDocDir = typeQualifiedName . startsWith ( "com.qspin.qtaste." ) ? QTaste_JAVADOC_URL_PREFIX : SUT_JAVADOC_URL_PREFIX ; typeDocFileName = javaDocDir + typeQualifiedName . replace ( ' ' , ' ' ) + ".html" ; } String typeString = typeQualifiedName ; if ( typeDocFileName != null ) { typeString = "<A HREF=\"" + typeDocFileName + "\">" + typeString + "</A>" ; } if ( type . asParameterizedType ( ) != null ) { ParameterizedType parametrizedType = type . asParameterizedType ( ) ; final Type [ ] parameterTypes = parametrizedType . typeArguments ( ) ; if ( parameterTypes . length > 0 ) { String [ ] parametersTypeStrings = new String [ parameterTypes . length ] ; for ( int i = 0 ; i < parameterTypes . length ; i ++ ) { parametersTypeStrings [ i ] = getTypeString ( parameterTypes [ i ] ) ; } typeString += "&lt;" + Strings . join ( parametersTypeStrings , "," ) + "&gt;" ; } } typeString += type . dimension ( ) ; return typeString ; }
Returns type string .