Re: [SrcML] static analyzis
Status: Beta
Brought to you by:
crashchaos
From: Leif B. <lei...@in...> - 2005-05-29 21:47:20
|
> You can change that into > public abstract Vector<AnalyzerResult> execute( > Vector<SrcML> f_docs) throws PluginException > now that we 'support' java 1.5 to increase the type safety. > (same for the methods below) ok >> public Vector addDocument(SrcML f_srcml) {} >> public Vector getDocuments() {} >> public void removeAllDocuments() {} >> public Vector removeDocument(SrcML f_srcml) {} > So if I understand that correctly the AnalyzerPlatform still only > has a execute() method without parameters, but implicitly calls > the plugin with execute(getDocuments()) ? exactly. Do you see any problems with this? >> The advantage is, that you can add all your files you want to be >> analyzed and then run numerous analyzes on it, with just set the new >> plugin each time. > Sounds good. Although you could do the same for the View too. The > Vector of SrcML documents has to be created 'somewhere'. In your > case the AnalyzerPlatform takes care of it and in the case of the > ViewPlatform the callee would have to use the same Vector for every > chosen ViewPlugin. But from a design point of view your solution > looks better to me as it's emphasizing the platform concept more > clearly. ok, but this could take 'til wednesday. > Leif |