Add KFunction.name, support reflection for function references
#KT-7694 Fixed
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ import java.util.Arrays
|
||||
public class ReflectJavaClass(
|
||||
private val klass: Class<*>
|
||||
) : ReflectJavaElement(), ReflectJavaAnnotationOwner, ReflectJavaModifierListOwner, JavaClass {
|
||||
override val element: AnnotatedElement get() = klass
|
||||
override val element: Class<*> get() = klass
|
||||
|
||||
override val modifiers: Int get() = klass.getModifiers()
|
||||
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ import java.lang.reflect.Method
|
||||
import java.lang.reflect.TypeVariable
|
||||
|
||||
public class ReflectJavaTypeParameter(
|
||||
private val typeVariable: TypeVariable<*>
|
||||
public val typeVariable: TypeVariable<*>
|
||||
) : ReflectJavaElement(), JavaTypeParameter {
|
||||
override fun getUpperBounds(): List<ReflectJavaClassifierType> {
|
||||
val bounds = typeVariable.getBounds().map { bound -> ReflectJavaClassifierType(bound) }
|
||||
|
||||
Reference in New Issue
Block a user