Class JavaTypeSearch

java.lang.Object
uno.anahata.ai.nb.model.java2.JavaTypeSearch

public class JavaTypeSearch extends Object
A "Finder" command object that searches for Java types upon instantiation. It encapsulates the logic for interacting with the NetBeans TypeProvider SPI and holds the results in a private final field.
  • Constructor Details

    • JavaTypeSearch

      public JavaTypeSearch(String query, boolean caseSensitive, boolean preferOpenProjects)
      Constructs a new JavaTypeSearch and performs the search based on the given parameters.
      Parameters:
      query - the search query.
      caseSensitive - whether the search is case-sensitive.
      preferOpenProjects - whether to prioritize results from open projects.
  • Method Details

    • getResults

      public List<JavaType> getResults()
      Gets the results of the search.
      Returns:
      An unmodifiable list of found JavaTypes.