+ classDescriptor.getColor()
+ "\", style=\"dotted, bold\"];\n");
- if (!returnType.isVisible())
- return result.toString();
+ if (returnType == null) return result.toString();
+ if (!returnType.isVisible()) return result.toString();
// main type
if (returnType.areReferencesShown())
result.append(" // " + methodName + "\n");
result.append(" <TR><td ALIGN=\"right\">"
- + "<FONT POINT-SIZE=\"8.0\">" + returnType.getClassName(true)
+ + "<FONT POINT-SIZE=\"8.0\">" + describeReturnType()
+ "</FONT>" + "</td><TD PORT=\"" + getMethodLabel()
+ "\" ALIGN=\"left\"><FONT COLOR =\"red\" POINT-SIZE=\"11.0\">"
+ getMethodLabel() + "</FONT></TD></TR>\n");
return result.toString();
}
+ private String describeReturnType() {
+ if (returnType == null) return "-null-";
+
+ return returnType.getClassName(true);
+ }
+
@Override
public String getGraphId() {
return parentClass.getGraphId() + ":" + methodName;