W3cubDocs

/Kotlin

isAccessible

var KCallable<*>.isAccessible: Boolean

Platform and version requirements: JVM

Provides a way to suppress JVM access checks for a callable.

Getter returns true if JVM access checks are suppressed for this callable object. For a property, that means that all its accessors (getter, and setter for var properties) are accessible.

Setter if set to true, suppresses JVM access checks for this callable object. For a property, both accessors are made accessible.

See Also

java.lang.reflect.AccessibleObject

© 2010–2018 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect.jvm/is-accessible.html