Package org.eclipse.lsp4j
Class TextDocumentRegistrationOptions
- java.lang.Object
-
- org.eclipse.lsp4j.TextDocumentRegistrationOptions
-
- Direct Known Subclasses:
AbstractTextDocumentRegistrationAndWorkDoneProgressOptions,DocumentOnTypeFormattingRegistrationOptions,StaticRegistrationOptions,TextDocumentChangeRegistrationOptions,TextDocumentSaveRegistrationOptions
public class TextDocumentRegistrationOptions extends java.lang.ObjectSince most of the registration options require to specify a document selector there is a base interface that can be used.
-
-
Constructor Summary
Constructors Constructor Description TextDocumentRegistrationOptions()TextDocumentRegistrationOptions(java.util.List<DocumentFilter> documentSelector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.List<DocumentFilter>getDocumentSelector()A document selector to identify the scope of the registration.inthashCode()voidsetDocumentSelector(java.util.List<DocumentFilter> documentSelector)A document selector to identify the scope of the registration.java.lang.StringtoString()
-
-
-
Constructor Detail
-
TextDocumentRegistrationOptions
public TextDocumentRegistrationOptions()
-
TextDocumentRegistrationOptions
public TextDocumentRegistrationOptions(java.util.List<DocumentFilter> documentSelector)
-
-
Method Detail
-
getDocumentSelector
public java.util.List<DocumentFilter> getDocumentSelector()
A document selector to identify the scope of the registration. If set to null the document selector provided on the client side will be used.
-
setDocumentSelector
public void setDocumentSelector(java.util.List<DocumentFilter> documentSelector)
A document selector to identify the scope of the registration. If set to null the document selector provided on the client side will be used.
-
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
-
-