public class PropertyReferenceInfo extends java.lang.Object implements CallableReferenceInfo
Constructor and Description |
---|
PropertyReferenceInfo(Clazz ownerClass,
KotlinDeclarationContainerMetadata ownerMetadata,
KotlinPropertyMetadata propertyMetadata) |
Modifier and Type | Method and Description |
---|---|
void |
accept(CallableReferenceInfoVisitor callableReferenceInfoVisitor) |
java.lang.String |
getName()
The Kotlin name of the callable, the one which was declared in the source code (@JvmName
doesn't change it).
|
KotlinDeclarationContainerMetadata |
getOwner()
The class or package where the callable should be located, usually specified on the LHS of the
'::' operator.
|
java.lang.String |
getSignature()
For properties this is the signature of it's JVM getter method.
|
void |
ownerAccept(KotlinMetadataVisitor kotlinMetadataVisitor) |
public PropertyReferenceInfo(Clazz ownerClass, KotlinDeclarationContainerMetadata ownerMetadata, KotlinPropertyMetadata propertyMetadata)
public java.lang.String getName()
CallableReferenceInfo
getName
in interface CallableReferenceInfo
public java.lang.String getSignature()
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 e.g. "myProperty" -> "getMyProperty".
getSignature
in interface CallableReferenceInfo
public KotlinDeclarationContainerMetadata getOwner()
CallableReferenceInfo
Note: this is not necessarily the location where the callable is *declared* - it could be declared in a superclass.
getOwner
in interface CallableReferenceInfo
public void accept(CallableReferenceInfoVisitor callableReferenceInfoVisitor)
accept
in interface CallableReferenceInfo
public void ownerAccept(KotlinMetadataVisitor kotlinMetadataVisitor)
ownerAccept
in interface CallableReferenceInfo