Home
IDEs Support (IntelliJ Platform) | JetBrains
Contact Support
Community
Sign in
Nicolay Mitropolsky
Total activity
53
Last activity
April 03, 2023 19:07
Member since
April 30, 2018 14:11
Following
0 users
Followed by
0 users
Votes
1
Subscriptions
17
Activity overview
Articles (0)
Posts (0)
Comments (35)
Sort by recent activity
Recent activity
Votes
Created
July 04, 2018 10:25
> expression has no access to `getNode()` It is really strange, `KtExpression` inherits from `PsiElement` and `getNode` is a method of base `PsiElement` along with `accept` for visitors
Community
IntelliJ IDEA Open API and Plugin Development
How to read a Kotlin Annotation inside an intellij plugin?
0 votes
Created
July 03, 2018 16:22
expression.getNode().getFirstChildNode() should work. Also, you could pass a visitor to the `accept` method to get inside the expression (probably you should use recursive visitor)
Community
IntelliJ IDEA Open API and Plugin Development
How to read a Kotlin Annotation inside an intellij plugin?
0 votes
Created
July 03, 2018 06:19
Hi! I usually do it somehow like this: annotationEntry.valueArguments.firstOrNull { it.getArgumentName()?.asName?.asString() == name }?.getArgumentExpression()
Community
IntelliJ IDEA Open API and Plugin Development
How to read a Kotlin Annotation inside an intellij plugin?
1 vote
Created
June 29, 2018 11:48
Official comment
Current status is (for IDEA 2018.2 and Kotlin 1.2.50) : EntityManager.createQuery and other such methods works, but there are some issues with string concatenation KT-13233 Spring JPA Repositorie...
Community
IntelliJ IDEA Users
Does Kotlin, JPA and jpql assist work?
0 votes
Created
May 07, 2018 10:04
Annotation entry for Kotlin - is a call expression, so `getValueArguments` should work to get passed arguments
Community
IntelliJ IDEA Open API and Plugin Development
(Kotlin PSI) Check if class is a subclass of a particular class, that works for JVM and Common platforms?
0 votes
Created
May 07, 2018 08:58
You should better operate `KtNamedFunction`, and get annotations via `getAnnotationEntries`. LightMethods were designed to provide in-IDE interop with Java, so yes, they could be not fully support...
Community
IntelliJ IDEA Open API and Plugin Development
(Kotlin PSI) Check if class is a subclass of a particular class, that works for JVM and Common platforms?
0 votes
Created
May 07, 2018 08:32
You could use KtFunction. But it is not very clear how you actually get Light-elements? If you are writing an inspection you'll get Kotlin source elements (KtClassOrObject, KtFunction etc) and to g...
Community
IntelliJ IDEA Open API and Plugin Development
(Kotlin PSI) Check if class is a subclass of a particular class, that works for JVM and Common platforms?
0 votes
Created
May 03, 2018 10:35
I've actually created an issue in the Kotlin bug tracker for your initial problem. But employing `KtClassOrObject` should work anyway.
Community
IntelliJ IDEA Open API and Plugin Development
(Kotlin PSI) Check if class is a subclass of a particular class, that works for JVM and Common platforms?
0 votes
Created
May 01, 2018 05:50
It could be impossible to get `KtClassOrObject` from `getSuperTypeList` but you could rely on `KtTypeReference` and resolve it to a full name. I am sorry I cant provide an exact code right now, b...
Community
IntelliJ IDEA Open API and Plugin Development
(Kotlin PSI) Check if class is a subclass of a particular class, that works for JVM and Common platforms?
0 votes
Created
April 30, 2018 14:11
Looks like `KtLightClass` will properly work only for JVM-platforms. You could try using `KtClassOrObject` with `getSuperTypeList` instead.
Community
IntelliJ IDEA Open API and Plugin Development
(Kotlin PSI) Check if class is a subclass of a particular class, that works for JVM and Common platforms?
0 votes
«
First
‹
Previous