Abstract
Abstract
Readonly
descriptionA short description of what the plugin does.
Abstract
Readonly
nameA unique, human-readable name of the plugin.
Readonly
typeThe type of the plugin, determining when and for what purpose it is applied during the analysis.
Abstract
Readonly
versionThe version of the plugin, ideally following semver.
Static
defaultReturns a default/dummy implementation to be used when no plugin of this type is registered or triggered.
Abstract
appliesDetermine whether this plugin applies to the given file.
Protected
Abstract
processRun 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.