@JvmOverloads @JvmName("field") operator fun IJvmType.invoke(name: String, value: String?, documentation: String, since: String? = null, see: List<String>? = null): JavaField (source)
Creates, registers and returns an object representing a Java field.
documentation - the documentation for the field
since - the documentation for the field's @since tag
see - the references to be in the documentation of the
field
Receiver
the type for the field
Return
the newly created and registered JavaField object
Since
1.0.0
@JvmOverloads @JvmName("fields") operator fun IJvmType.invoke(names: Array<String>, documentation: String, since: String? = null, see: List<String>? = null): JavaField (source)
Creates, registers and returns an object representing one or multiple Java field/s.
This function may be used to generate multiple fields of the same type. If this is the case the returned JavaField object will also not only represent one of the fields but all of them.
All fields registered by this function will be marked to be left uninitialized.
names - the name/s for the field/s
documentation - the documentation for the field/s
since - the documentation for the field's/fields' @since
tag
see - the references to be in the documentation of the
field/s
Receiver
the type for the field/s
Return
the newly created and registered JavaField object
Since
1.0.0
@JvmOverloads @JvmName("fields") operator fun IJvmType.invoke(vararg entries: Pair<String, String?>, documentation: String, since: String? = null, see: List<String>? = null): JavaField (source)
Creates, registers and returns an object representing one or multiple Java field/s.
This function may be used to generate multiple fields of the same type. If this is the case the returned JavaField object will also not only represent one of the fields but all of them.
A value may be null to leave the field uninitialized.
entries - the name and value pairs for the field/s (A null
value will leave the respective field uninitialized.
For null use "null" instead.)
documentation - the documentation for the field/s
since - the documentation for the field's/fields' @since
tag
see - the references to be in the documentation of the
field/s
Receiver
the type for the field/s
Return
the newly created and registered JavaField object
Since
1.0.0
@JvmOverloads @JvmName("method") operator fun IJvmType.invoke(name: String, documentation: String, vararg parameters: JavaParameter, returnDoc: String? = null, since: String? = null, exceptions: Array<out Pair<IJvmType, String?>>? = null, see: Array<out String>? = null, typeParameters: Array<out Pair<JvmGenericType, String?>>? = null, body: String? = null): JavaMethod (source)
Creates, registers and returns an object representing a Java method.
name - the name for the method
documentation - the documentation for the method
parameters - the parameters for the method
returnDoc - the documentation for the method's @returnDoc
tag
since - the documentation for the method's @since tag
exceptions - the exceptions that may be thrown by the method
and their respective documentation entries
see - the objects to be referenced in the method's
documentation
typeParameters - the type parameters for the method
body - the body for the method
Receiver
the return type for the method
Return
the newly created and registered JavaMethod object
Since
1.0.0