mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
PY-1751: Introduce getMethodsInherited for PyClass.
This method collects all methods defined in the class and its parents. Similar to `getPropertiesInherited` and `getClassAttributesInherited`. GitOrigin-RevId: 8dcec5a002ffa105083ece6f4418d51e6d8c2879
This commit is contained in:
committed by
intellij-monorepo-bot
parent
86b23d40f1
commit
a15b7f25b8
@@ -99,6 +99,16 @@ public interface PyClass extends PyAstClass, PsiNameIdentifierOwner, PyCompoundS
|
||||
@Override
|
||||
PyExpression @NotNull [] getSuperClassExpressions();
|
||||
|
||||
|
||||
/**
|
||||
* Collects methods defined in the class, and its parents.
|
||||
* <p/>
|
||||
* This method does not access AST if the underlying PSI is stub-based.
|
||||
*
|
||||
* @return class methods
|
||||
*/
|
||||
PyFunction @NotNull [] getMethodsInherited(@Nullable TypeEvalContext context);
|
||||
|
||||
/**
|
||||
* Collects methods defined in the class.
|
||||
* <p/>
|
||||
|
||||
Reference in New Issue
Block a user