return Signature.C_RESOLVED + name + Signature.C_SEMICOLON;
}
private static void appendGenericType(StringBuffer sb, IMethod iMethod,
String unresolvedType) throws JavaModelException{
IType declaringType = iMethod.getDeclaringType();
// unresolvedType is here like "QA;" => we remove "Q" and ";"
if(unresolvedType.length() < 3){
// ???? something wrong here ....
sb.append(unresolvedType);
return;
}
unresolvedType = unresolvedType.substring(1, unresolvedType.length() - 1);
ITypeParameter typeParameter = iMethod.getTypeParameter(unresolvedType);
if(typeParameter == null || !typeParameter.exists()){
typeParameter = declaringType.getTypeParameter(unresolvedType);
}
String[] bounds = typeParameter.getBounds();
if(bounds.length == 0){
sb.append("Ljava/lang/Object;");