Package org.eclipse.lsp4j
Class SignatureInformation
- java.lang.Object
-
- org.eclipse.lsp4j.SignatureInformation
-
public class SignatureInformation extends java.lang.ObjectRepresents the signature of something callable. A signature can have a label, like a function-name, a doc-comment, and a set of parameters.
-
-
Constructor Summary
Constructors Constructor Description SignatureInformation()SignatureInformation(java.lang.String label)SignatureInformation(java.lang.String label, java.lang.String documentation, java.util.List<ParameterInformation> parameters)SignatureInformation(java.lang.String label, MarkupContent documentation, java.util.List<ParameterInformation> parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.IntegergetActiveParameter()The index of the active parameter.org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,MarkupContent>getDocumentation()The human-readable doc-comment of this signature.java.lang.StringgetLabel()The label of this signature.java.util.List<ParameterInformation>getParameters()The parameters of this signature.inthashCode()voidsetActiveParameter(java.lang.Integer activeParameter)The index of the active parameter.voidsetDocumentation(java.lang.String documentation)voidsetDocumentation(org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,MarkupContent> documentation)The human-readable doc-comment of this signature.voidsetDocumentation(MarkupContent documentation)voidsetLabel(java.lang.String label)The label of this signature.voidsetParameters(java.util.List<ParameterInformation> parameters)The parameters of this signature.java.lang.StringtoString()
-
-
-
Constructor Detail
-
SignatureInformation
public SignatureInformation()
-
SignatureInformation
public SignatureInformation(java.lang.String label)
-
SignatureInformation
public SignatureInformation(java.lang.String label, java.lang.String documentation, java.util.List<ParameterInformation> parameters)
-
SignatureInformation
public SignatureInformation(java.lang.String label, MarkupContent documentation, java.util.List<ParameterInformation> parameters)
-
-
Method Detail
-
getLabel
public java.lang.String getLabel()
The label of this signature. Will be shown in the UI.
-
setLabel
public void setLabel(java.lang.String label)
The label of this signature. Will be shown in the UI.
-
getDocumentation
public org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,MarkupContent> getDocumentation()
The human-readable doc-comment of this signature. Will be shown in the UI but can be omitted.
-
setDocumentation
public void setDocumentation(org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,MarkupContent> documentation)
The human-readable doc-comment of this signature. Will be shown in the UI but can be omitted.
-
setDocumentation
public void setDocumentation(java.lang.String documentation)
-
setDocumentation
public void setDocumentation(MarkupContent documentation)
-
getParameters
public java.util.List<ParameterInformation> getParameters()
The parameters of this signature.
-
setParameters
public void setParameters(java.util.List<ParameterInformation> parameters)
The parameters of this signature.
-
getActiveParameter
public java.lang.Integer getActiveParameter()
The index of the active parameter.If provided, this is used in place of
SignatureHelp.activeParameter.Since 3.16.0
-
setActiveParameter
public void setActiveParameter(java.lang.Integer activeParameter)
The index of the active parameter.If provided, this is used in place of
SignatureHelp.activeParameter.Since 3.16.0
-
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
-
-