java.lang.Object
com.github.javaparser.symbolsolver.resolution.typesolvers.JarTypeSolver
All Implemented Interfaces:
TypeSolver

public class JarTypeSolver extends Object implements TypeSolver
Will let the symbol solver look inside a jar file while solving types.
Author:
Federico Tomassetti
  • Constructor Details

    • JarTypeSolver

      public JarTypeSolver(Path pathToJar) throws IOException
      Create a JarTypeSolver from a Path.
      Parameters:
      pathToJar - The path where the jar is located.
      Throws:
      IOException - If an I/O exception occurs while reading the Jar.
    • JarTypeSolver

      public JarTypeSolver(File pathToJar) throws IOException
      Create a JarTypeSolver from a File.
      Parameters:
      pathToJar - The file pointing to the jar is located.
      Throws:
      IOException - If an I/O exception occurs while reading the Jar.
    • JarTypeSolver

      public JarTypeSolver(String pathToJar) throws IOException
      Create a JarTypeSolver from a path in a String format.
      Parameters:
      pathToJar - The path pointing to the jar.
      Throws:
      IOException - If an I/O exception occurs while reading the Jar.
    • JarTypeSolver

      public JarTypeSolver(InputStream jarInputStream) throws IOException
      Create a JarTypeSolver from a InputStream. The content will be dumped into a temporary file to be used in the type solver.
      Parameters:
      jarInputStream - The input stream to be used.
      Throws:
      IOException - If an I/O exception occurs while creating the temporary file.
  • Method Details