makeAccessible

open fun makeAccessible(ctor: Constructor<out Any>)

Make the given constructor accessible, explicitly setting it accessible if necessary. The setAccessible(true) method is only called when actually necessary, to avoid unnecessary conflicts.

Parameters

ctor

the constructor to make accessible

See also

java.lang.reflect.Constructor

open fun makeAccessible(method: Method)

Make the given method accessible, explicitly setting it accessible if necessary. The setAccessible(true) method is only called when actually necessary, to avoid unnecessary conflicts.

Parameters

method

the method to make accessible

See also

java.lang.reflect.Method

open fun makeAccessible(field: Field)

Make the given field accessible, explicitly setting it accessible if necessary. The setAccessible(true) method is only called when actually necessary, to avoid unnecessary conflicts.

Parameters

field

the field to make accessible

See also

java.lang.reflect.Field