Class SourceFileInfoExtractor
java.lang.Object
com.github.javaparser.symbolsolver.SourceFileInfoExtractor
Resolves resolvable nodes from one or more source files, and reports the results.
It is mainly intended as an example usage of JavaSymbolSolver.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PrintStream
private int
private PrintStream
private boolean
private int
private final TypeSolver
private int
private boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncollectAllNodes
(Node node) int
int
int
private int
void
setErr
(PrintStream err) void
setOut
(PrintStream out) void
setPrintFileName
(boolean printFileName) void
setVerbose
(boolean verbose) private void
void
private void
solveMethodCalls
(Node node) void
solveMethodCalls
(Path path) private void
private String
toString
(MethodCallExpr node) private String
toString
(SymbolReference<ResolvedMethodDeclaration> methodDeclarationSymbolReference)
-
Field Details
-
typeSolver
-
successes
private int successes -
failures
private int failures -
unsupported
private int unsupported -
printFileName
private boolean printFileName -
out
-
err
-
verbose
private boolean verbose
-
-
Constructor Details
-
SourceFileInfoExtractor
-
-
Method Details
-
setVerbose
public void setVerbose(boolean verbose) -
setPrintFileName
public void setPrintFileName(boolean printFileName) -
setOut
-
setErr
-
getSuccesses
public int getSuccesses() -
getUnsupported
public int getUnsupported() -
getFailures
public int getFailures() -
solveTypeDecl
-
solve
-
solveMethodCalls
-
toString
-
toString
private String toString(SymbolReference<ResolvedMethodDeclaration> methodDeclarationSymbolReference) -
collectAllNodes
-
solve
- Throws:
IOException
-
solveMethodCalls
- Throws:
IOException
-
lineNr
-