Class Source
- java.lang.Object
-
- org.eclipse.lsp4j.debug.Source
-
public class Source extends java.lang.Object
A Source is a descriptor for source code.It is returned from the debug adapter as part of a StackFrame and it is used by clients when specifying breakpoints.
-
-
Constructor Summary
Constructors Constructor Description Source()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.Object
getAdapterData()
Additional data that a debug adapter might want to loop through the client.Checksum[]
getChecksums()
The checksums associated with this file.java.lang.String
getName()
The short name of the source.java.lang.String
getOrigin()
The origin of this source.java.lang.String
getPath()
The path of the source to be shown in the UI.SourcePresentationHint
getPresentationHint()
A hint for how to present the source in the UI.java.lang.Integer
getSourceReference()
If the value > 0 the contents of the source must be retrieved through the SourceRequest (even if a path is specified).Source[]
getSources()
A list of sources that are related to this source.int
hashCode()
void
setAdapterData(java.lang.Object adapterData)
Additional data that a debug adapter might want to loop through the client.void
setChecksums(Checksum[] checksums)
The checksums associated with this file.void
setName(java.lang.String name)
The short name of the source.void
setOrigin(java.lang.String origin)
The origin of this source.void
setPath(java.lang.String path)
The path of the source to be shown in the UI.void
setPresentationHint(SourcePresentationHint presentationHint)
A hint for how to present the source in the UI.void
setSourceReference(java.lang.Integer sourceReference)
If the value > 0 the contents of the source must be retrieved through the SourceRequest (even if a path is specified).void
setSources(Source[] sources)
A list of sources that are related to this source.java.lang.String
toString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
The short name of the source. Every source returned from the debug adapter has a name.When sending a source to the debug adapter this name is optional.
This is an optional property.
-
setName
public void setName(java.lang.String name)
The short name of the source. Every source returned from the debug adapter has a name.When sending a source to the debug adapter this name is optional.
This is an optional property.
-
getPath
public java.lang.String getPath()
The path of the source to be shown in the UI.It is only used to locate and load the content of the source if no sourceReference is specified (or its value is 0).
This is an optional property.
-
setPath
public void setPath(java.lang.String path)
The path of the source to be shown in the UI.It is only used to locate and load the content of the source if no sourceReference is specified (or its value is 0).
This is an optional property.
-
getSourceReference
public java.lang.Integer getSourceReference()
If the value > 0 the contents of the source must be retrieved through the SourceRequest (even if a path is specified).Since a `source` request is only valid for a session, it can not be used to persist a source.
The value should be less than or equal to 2147483647 (2^31-1).
This is an optional property.
-
setSourceReference
public void setSourceReference(java.lang.Integer sourceReference)
If the value > 0 the contents of the source must be retrieved through the SourceRequest (even if a path is specified).Since a `source` request is only valid for a session, it can not be used to persist a source.
The value should be less than or equal to 2147483647 (2^31-1).
This is an optional property.
-
getPresentationHint
public SourcePresentationHint getPresentationHint()
A hint for how to present the source in the UI.A value of 'deemphasize' can be used to indicate that the source is not available or that it is skipped on stepping.
This is an optional property.
-
setPresentationHint
public void setPresentationHint(SourcePresentationHint presentationHint)
A hint for how to present the source in the UI.A value of 'deemphasize' can be used to indicate that the source is not available or that it is skipped on stepping.
This is an optional property.
-
getOrigin
public java.lang.String getOrigin()
The origin of this source. For example, 'internal module', 'inlined content from source map', etc.This is an optional property.
-
setOrigin
public void setOrigin(java.lang.String origin)
The origin of this source. For example, 'internal module', 'inlined content from source map', etc.This is an optional property.
-
getSources
public Source[] getSources()
A list of sources that are related to this source. These may be the source that generated this source.This is an optional property.
-
setSources
public void setSources(Source[] sources)
A list of sources that are related to this source. These may be the source that generated this source.This is an optional property.
-
getAdapterData
public java.lang.Object getAdapterData()
Additional data that a debug adapter might want to loop through the client.The client should leave the data intact and persist it across sessions. The client should not interpret the data.
This is an optional property.
-
setAdapterData
public void setAdapterData(java.lang.Object adapterData)
Additional data that a debug adapter might want to loop through the client.The client should leave the data intact and persist it across sessions. The client should not interpret the data.
This is an optional property.
-
getChecksums
public Checksum[] getChecksums()
The checksums associated with this file.This is an optional property.
-
setChecksums
public void setChecksums(Checksum[] checksums)
The checksums associated with this file.This is an optional property.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-