Package org.eclipse.lsp4j
Class ApplyWorkspaceEditResponse
- java.lang.Object
-
- org.eclipse.lsp4j.ApplyWorkspaceEditResponse
-
public class ApplyWorkspaceEditResponse extends java.lang.ObjectThe result of the `workspace/applyEdit` request.Referred to as
ApplyWorkspaceEditResultin the LSP spec.
-
-
Constructor Summary
Constructors Constructor Description ApplyWorkspaceEditResponse()ApplyWorkspaceEditResponse(boolean applied)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.IntegergetFailedChange()Depending on the client's failure handling strategy `failedChange` might contain the index of the change that failed.java.lang.StringgetFailureReason()An optional textual description for why the edit was not applied.inthashCode()booleanisApplied()Indicates whether the edit was applied or not.voidsetApplied(boolean applied)Indicates whether the edit was applied or not.voidsetFailedChange(java.lang.Integer failedChange)Depending on the client's failure handling strategy `failedChange` might contain the index of the change that failed.voidsetFailureReason(java.lang.String failureReason)An optional textual description for why the edit was not applied.java.lang.StringtoString()
-
-
-
Method Detail
-
isApplied
public boolean isApplied()
Indicates whether the edit was applied or not.
-
setApplied
public void setApplied(boolean applied)
Indicates whether the edit was applied or not.
-
getFailureReason
public java.lang.String getFailureReason()
An optional textual description for why the edit was not applied. This may be used by the server for diagnostic logging or to provide a suitable error for a request that triggered the edit.
-
setFailureReason
public void setFailureReason(java.lang.String failureReason)
An optional textual description for why the edit was not applied. This may be used by the server for diagnostic logging or to provide a suitable error for a request that triggered the edit.
-
getFailedChange
public java.lang.Integer getFailedChange()
Depending on the client's failure handling strategy `failedChange` might contain the index of the change that failed. This property is only available if the client signals aWorkspaceEditCapabilities.failureHandlingstrategy in its client capabilities.
-
setFailedChange
public void setFailedChange(java.lang.Integer failedChange)
Depending on the client's failure handling strategy `failedChange` might contain the index of the change that failed. This property is only available if the client signals aWorkspaceEditCapabilities.failureHandlingstrategy in its client capabilities.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-