Class SourceFileInfoExtractor

java.lang.Object
com.github.javaparser.symbolsolver.SourceFileInfoExtractor

public class SourceFileInfoExtractor extends Object
Resolves resolvable nodes from one or more source files, and reports the results. It is mainly intended as an example usage of JavaSymbolSolver.
  • Field Details

    • typeSolver

      private final TypeSolver typeSolver
    • successes

      private int successes
    • failures

      private int failures
    • unsupported

      private int unsupported
    • printFileName

      private boolean printFileName
    • out

      private PrintStream out
    • err

      private PrintStream err
    • verbose

      private boolean verbose
  • Constructor Details

    • SourceFileInfoExtractor

      public SourceFileInfoExtractor(TypeSolver typeSolver)
  • Method Details

    • setVerbose

      public void setVerbose(boolean verbose)
    • setPrintFileName

      public void setPrintFileName(boolean printFileName)
    • setOut

      public void setOut(PrintStream out)
    • setErr

      public void setErr(PrintStream err)
    • getSuccesses

      public int getSuccesses()
    • getUnsupported

      public int getUnsupported()
    • getFailures

      public int getFailures()
    • solveTypeDecl

      private void solveTypeDecl(ClassOrInterfaceDeclaration node)
    • solve

      private void solve(Node node)
    • solveMethodCalls

      private void solveMethodCalls(Node node)
    • toString

      private String toString(MethodCallExpr node)
    • toString

      private String toString(SymbolReference<ResolvedMethodDeclaration> methodDeclarationSymbolReference)
    • collectAllNodes

      private List<Node> collectAllNodes(Node node)
    • solve

      public void solve(Path path) throws IOException
      Throws:
      IOException
    • solveMethodCalls

      public void solveMethodCalls(Path path) throws IOException
      Throws:
      IOException
    • lineNr

      private int lineNr(Node node)