Class ClassSearchResult

java.lang.Object
uno.anahata.ai.nb.model.java.ClassSearchResult

public class ClassSearchResult extends Object
A simple data object to hold the result of a class file search, containing the FileObject of the class and the ClassPath it belongs to. This is used to bridge between finding a .class file and then finding its corresponding .java source file or Javadoc.
Author:
Anahata
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final org.openide.filesystems.FileObject
    The FileObject representing the found class file.
    final org.netbeans.api.java.classpath.ClassPath
    The ClassPath that owns the found class file.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ClassSearchResult(org.openide.filesystems.FileObject classFile, org.netbeans.api.java.classpath.ClassPath ownerCp)
    Constructs a new ClassSearchResult.
  • Method Summary

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • classFile

      public final org.openide.filesystems.FileObject classFile
      The FileObject representing the found class file.
    • ownerCp

      public final org.netbeans.api.java.classpath.ClassPath ownerCp
      The ClassPath that owns the found class file.
  • Constructor Details

    • ClassSearchResult

      public ClassSearchResult(org.openide.filesystems.FileObject classFile, org.netbeans.api.java.classpath.ClassPath ownerCp)
      Constructs a new ClassSearchResult.
      Parameters:
      classFile - the class file found.
      ownerCp - the classpath owning the class file.