javapoet-dsl / com.mostlycertain.javapoetdsl / com.squareup.javapoet.ClassName / toFilePath

toFilePath

fun ClassName.toFilePath(): Path

Convert a non-nested class name to a java file path.

Example: a.b.c.Foo => a/b/c/Foo.java

Exceptions

IllegalStateException - if this class name is a nested class