Procedures, functions, packages, ... store in system table :
SYS.SOURCE$ line by line.
U should get object# for requered objects from (for example all_objects) and
then:

select source from sys.source$ where obj# = xxx order by line;