Skip to content
This repository was archived by the owner on Mar 18, 2024. It is now read-only.
This repository was archived by the owner on Mar 18, 2024. It is now read-only.

get complete qualifier for class #52

Description

@henry1986

I'm using an annotation to detect a class where code creation should happen.

Now I did not find any possibility to detect the whole qualifier name.

The only thing I could find was:

fun KtAnnotationEntry.toName() = typeReference?.typeElement?.safeAs<KtUserType>()?.referencedName

But this what only give me the simple name.

Assuming, I have two annotations like: org.my.annotation.example1.FilterAnnotation and org.my.annotation.example2.FilterAnnotation.

How can be distinguished between this two?

Is there at least a possibility to get the imports of the file?

Would be thankful for some help.

Best regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions