https://kotlinlang.org logo
Title
j

jmfayard

11/22/2018, 5:23 PM
I am looking for a static analysis tool that given a className prints to the console its Type Hierarchy in my project. Example
$ ./staticAnalysis android.app.Activity
android.app.Activity
  \-- FragmentActivity
    \-- AppCompatActivity
         \-- MyActivity1
         \-- MyActivity2
Does that exist?
i

igor.wojda

11/22/2018, 5:26 PM
I haven’t seen anything like this, besides does not look like typical static analysis task to me as it does not really check anything
j

jmfayard

11/22/2018, 5:28 PM
My use case : would be cool to automate the technical documentation in my projects I want basically a text version of the command
Type Hierarchy
in Android Studio / IntelliJ
i

igor.wojda

11/22/2018, 6:13 PM
Proper way to do it is to generate documentation from code https://kotlinlang.org/docs/reference/kotlin-doc.html I never used for Kotlin, however these tools usually generate proper documentation where you can see class hierarchy and even navigate through it
👍 1