public abstract class AbstractCodeLensesProvider extends Object implements LSCodeLensesProvider
Modifier and Type | Field and Description |
---|---|
protected boolean |
isEnabled
To track codelens provider is enabled or not.
|
protected String |
name
A uniquely identifiable name for the codelens provider.
|
Constructor and Description |
---|
AbstractCodeLensesProvider(String name) |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns name of the code lenses provider.
|
protected static int |
getTopMostLocOfAnnotations(List<BLangAnnotationAttachment> annotationAttachments,
int initialValue)
Calculate and returns topmost position of the annotations.
|
protected static int |
getTopMostLocOfDocs(BLangMarkdownDocumentation docs,
int initialValue)
Calculate and returns topmost position of the documentations.
|
boolean |
isEnabled()
Mark code lenses provider is enabled or not.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLenses
protected boolean isEnabled
protected final String name
public AbstractCodeLensesProvider(String name)
public String getName()
getName
in interface LSCodeLensesProvider
public boolean isEnabled()
isEnabled
in interface LSCodeLensesProvider
protected static int getTopMostLocOfAnnotations(List<BLangAnnotationAttachment> annotationAttachments, int initialValue)
annotationAttachments
- a list of BLangAnnotationAttachment
initialValue
- initial positionprotected static int getTopMostLocOfDocs(BLangMarkdownDocumentation docs, int initialValue)
docs
- BLangMarkdownDocumentation
markdown docsinitialValue
- initial positionCopyright © 2019 WSO2. All rights reserved.