Package org.eclipse.lsp4j
Class SignatureHelp
- java.lang.Object
-
- org.eclipse.lsp4j.SignatureHelp
-
public class SignatureHelp extends java.lang.ObjectSignature help represents the signature of something callable. There can be multiple signature but only one active and only one active parameter.
-
-
Constructor Summary
Constructors Constructor Description SignatureHelp()SignatureHelp(java.util.List<SignatureInformation> signatures, java.lang.Integer activeSignature, java.lang.Integer activeParameter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.IntegergetActiveParameter()The active parameter of the active signature.java.lang.IntegergetActiveSignature()The active signature.java.util.List<SignatureInformation>getSignatures()One or more signatures.inthashCode()voidsetActiveParameter(java.lang.Integer activeParameter)The active parameter of the active signature.voidsetActiveSignature(java.lang.Integer activeSignature)The active signature.voidsetSignatures(java.util.List<SignatureInformation> signatures)One or more signatures.java.lang.StringtoString()
-
-
-
Constructor Detail
-
SignatureHelp
public SignatureHelp()
-
SignatureHelp
public SignatureHelp(java.util.List<SignatureInformation> signatures, java.lang.Integer activeSignature, java.lang.Integer activeParameter)
-
-
Method Detail
-
getSignatures
public java.util.List<SignatureInformation> getSignatures()
One or more signatures.
-
setSignatures
public void setSignatures(java.util.List<SignatureInformation> signatures)
One or more signatures.
-
getActiveSignature
public java.lang.Integer getActiveSignature()
The active signature. If omitted or the value lies outside the range ofsignaturesthe value defaults to zero or is ignored if theSignatureHelphas no signatures. Whenever possible implementors should make an active decision about the active signature and shouldn't rely on a default value.In future version of the protocol this property might become mandatory to better express this.
-
setActiveSignature
public void setActiveSignature(java.lang.Integer activeSignature)
The active signature. If omitted or the value lies outside the range ofsignaturesthe value defaults to zero or is ignored if theSignatureHelphas no signatures. Whenever possible implementors should make an active decision about the active signature and shouldn't rely on a default value.In future version of the protocol this property might become mandatory to better express this.
-
getActiveParameter
public java.lang.Integer getActiveParameter()
The active parameter of the active signature. If omitted or the value lies outside the range ofsignatures[activeSignature].parametersdefaults to 0 if the active signature has parameters. If the active signature has no parameters it is ignored.In future version of the protocol this property might become mandatory to better express the active parameter if the active signature does have any.
-
setActiveParameter
public void setActiveParameter(java.lang.Integer activeParameter)
The active parameter of the active signature. If omitted or the value lies outside the range ofsignatures[activeSignature].parametersdefaults to 0 if the active signature has parameters. If the active signature has no parameters it is ignored.In future version of the protocol this property might become mandatory to better express the active parameter if the active signature does have any.
-
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
-
-