All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.neko233.config233.utils.MethodUtilsForConfig233.kt Maven / Gradle / Ivy

There is a newer version: 0.1.8
Show newest version
package com.neko233.config233.utils

import java.lang.reflect.Method

object MethodUtilsForConfig233 {
    @JvmStatic
    fun getAllMethods(obj: Any): List {
        val methods = mutableListOf()

        var currentClass: Class<*>? = obj.javaClass
        while (currentClass != null) {
            methods.addAll(currentClass.declaredMethods)
            currentClass = currentClass.superclass
        }

        return methods
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy