public abstract class DocumentationDelegateProvider
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static ExtensionPointName<DocumentationDelegateProvider> |
EP_NAME |
| Constructor and Description |
|---|
DocumentationDelegateProvider() |
| Modifier and Type | Method and Description |
|---|---|
abstract PsiDocCommentOwner |
computeDocumentationDelegate(PsiMember member)
Computes PsiDocCommentOwner to get documentation from.
|
static PsiDocCommentOwner |
findDocumentationDelegate(PsiMember method) |
public static final ExtensionPointName<DocumentationDelegateProvider> EP_NAME
public abstract PsiDocCommentOwner computeDocumentationDelegate(PsiMember member)
Computes PsiDocCommentOwner to get documentation from.
Suppose there is a Foo#bar() with doc and Baz#bar() without doc:
class Foo {
/**
* Some javadoc
*/
void bar() {}
}
class Baz {
void bar() {}
}
If it is needed to display doc from Foo#bar() when doc for Baz#bar() is queried
then this method should return PsiMethod corresponding to Foo#bar() for PsiMethod corresponding to Baz#bar().
member - method to search delegate for.public static PsiDocCommentOwner findDocumentationDelegate(PsiMember method)