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 PrintStreamprivate intprivate PrintStreamprivate booleanprivate intprivate final TypeSolverprivate intprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncollectAllNodes(Node node) intintintprivate intvoidsetErr(PrintStream err) voidsetOut(PrintStream out) voidsetPrintFileName(boolean printFileName) voidsetVerbose(boolean verbose) private voidvoidprivate voidsolveMethodCalls(Node node) voidsolveMethodCalls(Path path) private voidprivate StringtoString(MethodCallExpr node) private StringtoString(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
-