Package qilin.util

Class ViewFactory

java.lang.Object
qilin.util.ViewFactory

public final class ViewFactory extends Object
Builds a View over an application's classpath, library jars and a JRE.
  • Method Details

    • createView

      public static View createView(String appPath, String libPath, String jrePath)
    • createView

      public static View createView(String appPath, String libPath)
      Like createView(String, String, String), but resolves the JRE against the current JVM's own runtime image (DefaultRuntimeAnalysisInputLocation) instead of an external JRE stub directory. Only safe for analyses that don't need FakeMainFactory's pre-JDK9 JVM-bootstrap modeling (i.e. PointerAnalysisConfig.singleEntry(true)) - that block references JDK6/7/8-internal classes (e.g. sun.misc.Launcher$AppClassLoader) removed by the JPMS module system in JDK9+.