Class SymbolSolverCollectionStrategy
- java.lang.Object
-
- com.github.javaparser.symbolsolver.utils.SymbolSolverCollectionStrategy
-
- All Implemented Interfaces:
CollectionStrategy
public class SymbolSolverCollectionStrategy extends java.lang.Object implements CollectionStrategy
CollectionStrategywhich collects all SourceRoots and initialises the TypeSolver and returns the SourceRoots configured with the TypeSolver in a ProjectRoot object.
-
-
Field Summary
Fields Modifier and Type Field Description private ParserConfigurationparserConfigurationprivate CombinedTypeSolvertypeSolver
-
Constructor Summary
Constructors Constructor Description SymbolSolverCollectionStrategy()SymbolSolverCollectionStrategy(ParserConfiguration parserConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProjectRootcollect(java.nio.file.Path path)ParserConfigurationgetParserConfiguration()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.javaparser.utils.CollectionStrategy
getPathMatcher, getRoot
-
-
-
-
Field Detail
-
parserConfiguration
private final ParserConfiguration parserConfiguration
-
typeSolver
private final CombinedTypeSolver typeSolver
-
-
Constructor Detail
-
SymbolSolverCollectionStrategy
public SymbolSolverCollectionStrategy()
-
SymbolSolverCollectionStrategy
public SymbolSolverCollectionStrategy(ParserConfiguration parserConfiguration)
-
-
Method Detail
-
getParserConfiguration
public ParserConfiguration getParserConfiguration()
- Specified by:
getParserConfigurationin interfaceCollectionStrategy
-
collect
public ProjectRoot collect(java.nio.file.Path path)
- Specified by:
collectin interfaceCollectionStrategy
-
-