Class ParameterInformation
- java.lang.Object
-
- org.eclipse.lsp4j.ParameterInformation
-
public class ParameterInformation extends java.lang.ObjectRepresents a parameter of a callable-signature. A parameter can have a label and a doc-comment.
-
-
Constructor Summary
Constructors Constructor Description ParameterInformation()ParameterInformation(java.lang.String label)ParameterInformation(java.lang.String label, java.lang.String documentation)ParameterInformation(java.lang.String label, MarkupContent documentation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,MarkupContent>getDocumentation()The human-readable doc-comment of this signature.org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,org.eclipse.lsp4j.jsonrpc.messages.Tuple.Two<java.lang.Integer,java.lang.Integer>>getLabel()The label of this parameter information.inthashCode()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)voidsetLabel(org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,org.eclipse.lsp4j.jsonrpc.messages.Tuple.Two<java.lang.Integer,java.lang.Integer>> label)The label of this parameter information.voidsetLabel(org.eclipse.lsp4j.jsonrpc.messages.Tuple.Two<java.lang.Integer,java.lang.Integer> label)java.lang.StringtoString()
-
-
-
Constructor Detail
-
ParameterInformation
public ParameterInformation()
-
ParameterInformation
public ParameterInformation(java.lang.String label)
-
ParameterInformation
public ParameterInformation(java.lang.String label, java.lang.String documentation)
-
ParameterInformation
public ParameterInformation(java.lang.String label, MarkupContent documentation)
-
-
Method Detail
-
getLabel
public org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,org.eclipse.lsp4j.jsonrpc.messages.Tuple.Two<java.lang.Integer,java.lang.Integer>> getLabel()
The label of this parameter information.Either a string or an inclusive start and exclusive end offsets within its containing signature label (see
SignatureInformation.label). The offsets are based on a UTF-16 string representation asPositionandRangedoes.Note: a label of type string should be a substring of its containing signature label. Its intended use case is to highlight the parameter label part in the
SignatureInformation.label.
-
setLabel
public void setLabel(org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,org.eclipse.lsp4j.jsonrpc.messages.Tuple.Two<java.lang.Integer,java.lang.Integer>> label)
The label of this parameter information.Either a string or an inclusive start and exclusive end offsets within its containing signature label (see
SignatureInformation.label). The offsets are based on a UTF-16 string representation asPositionandRangedoes.Note: a label of type string should be a substring of its containing signature label. Its intended use case is to highlight the parameter label part in the
SignatureInformation.label.
-
setLabel
public void setLabel(java.lang.String label)
-
setLabel
public void setLabel(org.eclipse.lsp4j.jsonrpc.messages.Tuple.Two<java.lang.Integer,java.lang.Integer> label)
-
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)
-
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
-
-