Is there a any way to generate inner classes in javapoet library. I can generate classes with constructors and methods. But i can't figure out how to create inner classes
How to generate inner class in javapoet in java
Use the TypeSpec.Builder#addType
method. See nestedClasses() test in TypeSpecTest.java
© 2022 - 2024 — McMap. All rights reserved.