All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.codemodder.javaparser.JavaParserFactory Maven / Gradle / Ivy

package io.codemodder.javaparser;

import com.github.javaparser.JavaParser;
import io.codemodder.SourceDirectory;
import java.io.IOException;
import java.util.List;

/** Responsible for generating {@link JavaParser} instances. */
public interface JavaParserFactory {

  /**
   * 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.
   *
   * @param sourceDirectories the path to the project
   * @return a JavaParser instance based on the given source directories
   */
  JavaParser create(List sourceDirectories) throws IOException;

  static JavaParserFactory newFactory() {
    return new DefaultJavaParserFactory();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy