Class FileSource

java.lang.Object
org.eclipse.lsp4j.debug.Source
io.quarkus.qute.debug.agent.source.RemoteSource
io.quarkus.qute.debug.agent.source.FileSource
Direct Known Subclasses:
JavaFileSource

public class FileSource extends RemoteSource
A RemoteSource representing a Qute template stored as a local file.

This implementation is used when the template resides directly on the file system (as opposed to being embedded inside a JAR). It sets the DAP path field so that the client can open and display the file.

Example:

 file:///home/user/project/src/main/resources/templates/index.html
 
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    FileSource(URI uri, String templateId)
     
    protected
    FileSource(URI uri, String templateId, int startLine)
    Creates a new FileSource for a Qute template located on the local filesystem.
  • Method Summary

    Methods inherited from class io.quarkus.qute.debug.agent.source.RemoteSource

    computeName, getStartLine, getTemplateId, getUri

    Methods inherited from class org.eclipse.lsp4j.debug.Source

    equals, getAdapterData, getChecksums, getName, getOrigin, getPath, getPresentationHint, getSourceReference, getSources, hashCode, setAdapterData, setChecksums, setName, setOrigin, setPath, setPresentationHint, setSourceReference, setSources, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • FileSource

      public FileSource(URI uri, String templateId)
    • FileSource

      protected FileSource(URI uri, String templateId, int startLine)
      Creates a new FileSource for a Qute template located on the local filesystem.
      Parameters:
      uri - the URI of the template file (must use the file: scheme)
      templateId - the Qute template identifier