java.lang.Object
org.eclipse.lsp4j.debug.Source
io.quarkus.qute.debug.agent.source.RemoteSource
- Direct Known Subclasses:
FileSource,JarSource
public abstract class RemoteSource
extends org.eclipse.lsp4j.debug.Source
Represents a remote Qute template source used in the debug agent.
This class extends the standard DAP Source to include additional
information relevant to Qute templates, such as:
- The original
URIof the template (if available) - The Qute
templateIdused to identify the template within the engine
Both fields are marked transient because they are not meant to be
serialized through the DAP protocol — only the standard Source
properties are transmitted to the client.
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteSource(URI uri, String templateId) RemoteSource(URI uri, String templateId, int startLine) Creates a new remote source associated with the given template. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcomputeName(URI uri) Computes a human-readable name for this source, based on its URI.intReturns the Qute template identifier.getUri()Returns the URI of this template source.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
-
Constructor Details
-
RemoteSource
-
RemoteSource
Creates a new remote source associated with the given template.- Parameters:
uri- the URI of the template source, ornullif not applicabletemplateId- the template ID used by the Qute engine (nevernull)
-
-
Method Details
-
computeName
Computes a human-readable name for this source, based on its URI.The default implementation extracts the last segment (file name) from the URI. Subclasses may override this method to provide a more descriptive name.
- Parameters:
uri- the source URI- Returns:
- a display name for the source
-
getUri
Returns the URI of this template source.- Returns:
- the URI, or
nullif not applicable
-
getTemplateId
Returns the Qute template identifier.- Returns:
- the template ID (never
null)
-
getStartLine
public int getStartLine()
-