Intro to CodeBlock
What is it?
The goal of KotlinPoetDSL
Generating
Implicit generation
buildClass {
clazz("Hi"){
prop("prop".varOf<String>{
// At the moment I do not, but from V0.2 i will
}){
getter { /* I create a CodeBlock */ }
setter { /* Me too! */ }
}
func("myFunc"){ /* Don't forget me! */ }
constructor{ /* and me! */ }
}
}Explicit generation
Last updated