public interface LanguagePlugin
| Modifier and Type | Method and Description |
|---|---|
FilePathFilter |
getAllowedFilesFilter() |
CstRoot |
parse(SourceFileSet sources)
Analyze the given source files and build a Code Structure Tree (CST), represented by
the
CstRoot object. |
CstRoot parse(SourceFileSet sources) throws java.lang.Exception
CstRoot object.sources - A set of source files that should be analyzed. Note that RefDiff does not pass all
files of the project for analysis. Usually, only the files that changed between the revisions under
examination are passed to this method. Additionally, RefDiff filters files using the getAllowedFilesFilter
method.java.lang.Exception - when unable to parse the files.FilePathFilter getAllowedFilesFilter()
FilePathFilter object, which contains a list of file extensions supported by this
LanguagePlugin. Additionally, a list of excluded file extensions may be provided. For example, the
JavaScript language plugin analyzes .js files, but ignores .min.js files.