if (!returnType.isPrimitive())
return null;
else if (returnType.equals(Void.TYPE))
return null;
else if (returnType.equals(Boolean.TYPE))
{
return Boolean.FALSE;
}
else if (returnType.equals(Integer.TYPE))
{
return new Integer(0);
}
else if (returnType.equals(Long.TYPE))
{
return new Long(0);
}
else if (returnType.equals(Float.TYPE))
{
return new Float(0);
}
else if (returnType.equals(Double.TYPE))
{
return new Double(0);
}
else if (returnType.equals(Character.TYPE))
{
return new Character('\0");
}
else if (returnType.equals(Byte.TYPE))
{
return new Byte((byte) 0);
}
else if (returnType.equals(Short.TYPE))
{
return new Short((short) 0);
}
else
return null;