Class SymbolSolverCollectionStrategy
- java.lang.Object
-
- com.github.javaparser.symbolsolver.utils.SymbolSolverCollectionStrategy
-
- All Implemented Interfaces:
CollectionStrategy
public class SymbolSolverCollectionStrategy extends java.lang.Object implements CollectionStrategy
CollectionStrategy
which 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 ParserConfiguration
parserConfiguration
private CombinedTypeSolver
typeSolver
-
Constructor Summary
Constructors Constructor Description SymbolSolverCollectionStrategy()
SymbolSolverCollectionStrategy(ParserConfiguration parserConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProjectRoot
collect(java.nio.file.Path path)
ParserConfiguration
getParserConfiguration()
-
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:
getParserConfiguration
in interfaceCollectionStrategy
-
collect
public ProjectRoot collect(java.nio.file.Path path)
- Specified by:
collect
in interfaceCollectionStrategy
-
-