// named objects, except for the CGInit method, which
// is always inlined.
boolean hasDangerousType = false;
{
Type type = targetMethod.getReturnType();
if (type instanceof RefType) {
SootClass typeClass = ((RefType) type).getSootClass();
if (SootUtilities.derivesFrom(typeClass,
PtolemyUtilities.namedObjClass)) {
hasDangerousType = true;
}
}
}
for (Iterator argTypes = targetMethod.getParameterTypes()
.iterator(); argTypes.hasNext();) {
Type type = (Type) argTypes.next();
if (type instanceof RefType) {
SootClass typeClass = ((RefType) type).getSootClass();
if (SootUtilities.derivesFrom(typeClass,