How to get ClassName from TypeElement with kotlinpoet-metadata #1212
Unanswered
GreyTeardrop
asked this question in
Q&A
Replies: 1 comment 5 replies
-
That class was always in an internal package and never public API. For your use case, it's hard to advise without a concrete example as your question is a little vague |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm looking for a way to extract a proper
ClassName
from either aTypeElement
orKmClass
with a help ofkotlinpoet-metadata
. Specifically, I need aClassName
to generate a peer class for an existing class.Prior to version 1.10, I've used to call
ClassInspectorUtil.createClassName(kmClass.name)
for that. However,ClassInspectorUtil
is internal in 1.10 and I'm probably missing some obvious why how it's exposed to the public code.Beta Was this translation helpful? Give feedback.
All reactions