Get child classes

Hi all!

How can I programmatically get all implmenting from class "A" classes. I need find it in module libraries and in src folder.
Thanks, Victor!

0

Hello Victor,

How can I programmatically get all implmenting from class "A" classes.
I need find it in module libraries and in src folder.


ClassInheritorsSearch.search(class, module.getModuleWithLibrariesScope(),
true);

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Avatar
Permanently deleted user

Thanks, Dmitry!
Now I need filter in this array all not public and abstract classes only. How can I do this?

0

Hello Victor,

Thanks, Dmitry!
Now I need filter in this array all not public and abstract classes
only. How can I do this?


PsiClass.hasModifierProperty(PsiModifier.PUBLIC)
PsiClass.hasModifierProperty(PsiModifier.ABSTRACT)


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

请先登录再写评论。