Class SignatureInformation


  • public class SignatureInformation
    extends java.lang.Object
    Represents the signature of something callable. A signature can have a label, like a function-name, a doc-comment, and a set of parameters.
    • 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)
    • 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:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object