Class SignatureHelp


  • public class SignatureHelp
    extends java.lang.Object
    Signature help represents the signature of something callable. There can be multiple signature but only one active and only one active parameter.
    • 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 of signatures the value defaults to zero or is ignored if the SignatureHelp has 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 of signatures the value defaults to zero or is ignored if the SignatureHelp has 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 of signatures[activeSignature].parameters defaults 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 of signatures[activeSignature].parameters defaults 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:
        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