Package spoon.support.compiler.jdt
Interface CompilationUnitFilter
public interface CompilationUnitFilter
This interface is used by instances of
SpoonModelBuilder to
exclude particular CompilationUnits while
generating a CtModel with
SpoonModelBuilder.build(spoon.compiler.builder.JDTBuilder).
This interface is useful for large sized software system where traversing
all files takes several minutes. Unlike the approach of adding a subset of
the files to examine, filtering unwanted files produces a more precise
CtModel since all files will be compiled (but not
transformed).-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if the file with pathpathshould be excluded from theCtModelcreate bySpoonModelBuilder.build(spoon.compiler.builder.JDTBuilder).
-
Method Details
-
exclude
Tests if the file with pathpathshould be excluded from theCtModelcreate bySpoonModelBuilder.build(spoon.compiler.builder.JDTBuilder).- Parameters:
path- Path to the file that may or may not be excluded.- Returns:
trueif and only ifpathshould be excluded,falseotherwise.
-