Extract class/interface/method definitions from sources