addMethod

open fun addMethod(methodName: String, modifiers: Array<Modifier.Keyword>): MethodDeclaration(source)

Adds a methods with void return by default to this.

Return

the MethodDeclaration created

Parameters

methodName

the method name

modifiers

the modifiers like PUBLIC