AbstractAbstract ReadonlydescriptionA short description of what the plugin does.
Abstract ReadonlynameA unique, human-readable name of the plugin.
ReadonlytypeThe type of the plugin, determining when and for what purpose it is applied during the analysis.
Abstract ReadonlyversionThe version of the plugin, ideally following semver.
StaticdefaultReturns a default/dummy implementation to be used when no plugin of this type is registered or triggered.
AbstractappliesDetermine whether this plugin applies to the given file.
Protected AbstractprocessRun the plugin with the given context and arguments.
This is the base class for all plugins that load and possibly transform files when they are loaded. Different from other plugins, these plugins trigger for each file that is loaded (if they applies to the file). See the FlowrAnalyzerFilesContext.addFile for more information on how files are loaded and managed.
It is upt to the construction to ensure that no two file plugins applies to the same file, otherwise, the loading order of these plugins will determine which plugin gets to process the file.
See DefaultFlowrAnalyzerFilePlugin for the no-op default implementation.