Class SourceFileInfo

java.lang.Object
uno.anahata.ai.tools.spi.pojos.FileInfo
uno.anahata.ai.nb.model.java.SourceFileInfo
All Implemented Interfaces:
StatefulResource

public class SourceFileInfo extends FileInfo
  • Constructor Details

  • Method Details

    • getResourceId

      public String getResourceId()
      Overridden to enforce safety. A SourceFileInfo is only considered a stateful, trackable resource if it represents the *full* content of a file that belongs to an open project. In all other cases (e.g., from a JAR, from the JDK, or a partial/paginated view), it returns null, making it ephemeral to the ResourceTracker.
      Specified by:
      getResourceId in interface StatefulResource
      Overrides:
      getResourceId in class FileInfo
      Returns:
      The file path if the resource is stateful, otherwise null.