Class JavaTypeSource

java.lang.Object
uno.anahata.ai.nb.model.java2.JavaTypeSource
Direct Known Subclasses:
JavaMemberSource

public class JavaTypeSource extends Object
A rich result object that represents the outcome of a source-finding operation for a JavaType. It handles both top-level and nested types by resolving the outermost type element.
  • Field Details

    • javaType

      protected final JavaType javaType
    • sourceFile

      protected final org.openide.filesystems.FileObject sourceFile
    • content

      protected String content
  • Constructor Details

    • JavaTypeSource

      public JavaTypeSource(JavaType javaType) throws Exception
      Constructs a new JavaTypeSource and attempts to find the source file for the given JavaType.
      Parameters:
      javaType - the type to find source for.
      Throws:
      Exception - if the source cannot be found or read.