Class AnalyzerSettings
- java.lang.Object
-
- de.skuzzle.enforcer.restrictimports.analyze.AnalyzerSettings
-
public final class AnalyzerSettings extends Object
Defines context information for theSourceTreeAnalyzer.- Author:
- Simon Taddiken
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAnalyzerSettings.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AnalyzerSettings.Builderbuilder()booleanequals(Object obj)Collection<Path>getAllDirectories()Returns the union ofgetSrcDirectories()and getTestDirectories.CharsetgetSourceFileCharset()Collection<Path>getSrcDirectories()Collection<Path>getTestDirectories()inthashCode()booleanisParallel()booleanisParseFullCompilationUnit()When supported for a specific source file, we will attempt to parse the full source file.StringtoString()
-
-
-
Method Detail
-
builder
public static AnalyzerSettings.Builder builder()
-
getSourceFileCharset
public Charset getSourceFileCharset()
-
getSrcDirectories
public Collection<Path> getSrcDirectories()
-
getTestDirectories
public Collection<Path> getTestDirectories()
-
isParallel
public boolean isParallel()
-
isParseFullCompilationUnit
public boolean isParseFullCompilationUnit()
When supported for a specific source file, we will attempt to parse the full source file. This allows for a more accurate detection of imports.- Returns:
- Whether to attempt a full parse.
- Since:
- 2.1.0
-
getAllDirectories
public Collection<Path> getAllDirectories()
Returns the union ofgetSrcDirectories()and getTestDirectories.- Returns:
- All source directories that are subject to analysis.
-
-