Add KFunction.name, support reflection for function references

#KT-7694 Fixed
This commit is contained in:
Alexander Udalov
2015-06-17 20:37:57 +03:00
parent ab297a4da0
commit 3549e1e035
16 changed files with 302 additions and 54 deletions
@@ -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()
@@ -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) }