kotlin.jvm.internal
Class MutablePropertyReference2Impl
java.lang.Object
kotlin.jvm.internal.CallableReference
kotlin.jvm.internal.PropertyReference
kotlin.jvm.internal.MutablePropertyReference
kotlin.jvm.internal.MutablePropertyReference2
kotlin.jvm.internal.MutablePropertyReference2Impl
- All Implemented Interfaces:
- kotlin.Function, kotlin.jvm.functions.Function2, kotlin.reflect.KAnnotatedElement, kotlin.reflect.KCallable, kotlin.reflect.KMutableProperty, kotlin.reflect.KMutableProperty2, kotlin.reflect.KProperty, kotlin.reflect.KProperty2
public class MutablePropertyReference2Impl
- extends MutablePropertyReference2
Nested classes/interfaces inherited from interface kotlin.reflect.KMutableProperty2 |
kotlin.reflect.KMutableProperty2.Setter<D,E,R> |
Nested classes/interfaces inherited from interface kotlin.reflect.KProperty2 |
kotlin.reflect.KProperty2.Getter<D,E,R> |
Nested classes/interfaces inherited from interface kotlin.reflect.KProperty |
kotlin.reflect.KProperty.Accessor<R> |
Methods inherited from interface kotlin.reflect.KCallable |
call, callBy, getParameters, getReturnType |
Methods inherited from interface kotlin.reflect.KAnnotatedElement |
getAnnotations |
MutablePropertyReference2Impl
public MutablePropertyReference2Impl(kotlin.reflect.KDeclarationContainer owner,
String name,
String signature)
getOwner
public kotlin.reflect.KDeclarationContainer getOwner()
- Overrides:
getOwner
in class CallableReference
- Returns:
- the class or package where the callable should be located, usually specified on the LHS of the '::' operator
getName
public String getName()
- Specified by:
getName
in interface kotlin.reflect.KCallable
- Overrides:
getName
in class CallableReference
- Returns:
- Kotlin name of the callable, the one which was declared in the source code (@JvmName doesn't change it)
getSignature
public String getSignature()
- Overrides:
getSignature
in class CallableReference
- Returns:
- JVM signature of the callable, e.g. "println(Ljava/lang/Object;)V". If this is a property reference,
returns the JVM signature of its getter, e.g. "getFoo(Ljava/lang/String;)I". If the property has no getter in the bytecode
(e.g. private property in a class), it's still the signature of the imaginary default getter that would be generated otherwise.
Note that technically the signature itself is not even used as a signature per se in reflection implementation,
but only as a unique and unambiguous way to map a function/property descriptor to a string.
get
public Object get(Object receiver1,
Object receiver2)
- Specified by:
get
in interface kotlin.reflect.KProperty2
- Overrides:
get
in class MutablePropertyReference2
set
public void set(Object receiver1,
Object receiver2,
Object value)
- Specified by:
set
in interface kotlin.reflect.KMutableProperty2
- Overrides:
set
in class MutablePropertyReference2
Copyright © 2016. All Rights Reserved.