addField
open fun addField(typeClass: Class<out Any>, name: String, modifiers: Array<Modifier.Keyword>): FieldDeclaration(source)
Add a field to this and automatically add the import of the type if needed
Return
the FieldDeclaration created
Parameters
open fun addField(type: String, name: String, modifiers: Array<Modifier.Keyword>): FieldDeclaration(source)
open fun addField(type: Type, name: String, modifiers: Array<Modifier.Keyword>): FieldDeclaration(source)
Add a field to this.
Return
the FieldDeclaration created