Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,24 @@
|
|||
// Version 1.2.31
|
||||
|
||||
import kotlin.reflect.full.functions
|
||||
|
||||
open class MySuperClass {
|
||||
fun mySuperClassMethod(){}
|
||||
}
|
||||
|
||||
open class MyClass : MySuperClass() {
|
||||
fun myPublicMethod(){}
|
||||
|
||||
internal fun myInternalMethod(){}
|
||||
|
||||
protected fun myProtectedMethod(){}
|
||||
|
||||
private fun myPrivateMethod(){}
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val c = MyClass::class
|
||||
println("List of methods declared in ${c.simpleName} and its superclasses:\n")
|
||||
val fs = c.functions
|
||||
for (f in fs) println("${f.name}, ${f.visibility}")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue