addField

open fun addField(type: Type, name: String, modifiers: Array<Modifier.Keyword>): FieldDeclaration(source)

Add a field to this.

Return

the FieldDeclaration created

Parameters

type

the type of the field

name

the name of the field

modifiers

the modifiers like PUBLIC