Interface JavaParserFactory


public interface JavaParserFactory
Responsible for generating JavaParser instances.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.github.javaparser.JavaParser
    create(List<SourceDirectory> sourceDirectories)
    Create a JavaParser instance for the given project source directories.
     
  • Method Details

    • create

      com.github.javaparser.JavaParser create(List<SourceDirectory> sourceDirectories) throws IOException
      Create a JavaParser instance for the given project source directories. Note that we should still operate on the files that are not in the source directories, but we may have less symbol resolution for them.
      Parameters:
      sourceDirectories - the path to the project
      Returns:
      a JavaParser instance based on the given source directories
      Throws:
      IOException
    • newFactory

      static JavaParserFactory newFactory()