com.github.themrmilchmann.kraton.lang.java / JavaMethod

JavaMethod

open class JavaMethod : JavaModifierTarget, JavaBodyMember (source)

An object representing a Java method.

Properties

documentation

val documentation: String

the documentation of the method

exceptions

val exceptions: Array<out Pair<IJvmType, String?>>?

the exceptions that may be thrown by the method and their respective documentation entries

name

open val name: String

the name of the method

parameters

val parameters: Array<out JavaParameter>

the parameters of the method

returnDoc

val returnDoc: String?

the documentation of the method's @returnDoc tag

returnType

val returnType: IJvmType

the return type of the method

see

val see: Array<out String>?

the objects to be referenced in the method's documentation

since

val since: String?

the documentation of the method's @since tag

typeParameters

val typeParameters: Array<out Pair<JvmGenericType, String?>>?

the type parameters of the method

Functions

printMember

open fun PrintWriter.printMember(indent: String, containerType: JavaTopLevelType<*, *>): Unit

Prints this java object to the given PrintWriter.

Inherited Functions

compareTo

open fun compareTo(other: JavaBodyMember): Int

Inheritors

JavaConstructor

class JavaConstructor : JavaMethod

A java constructor.