Class PropertyReferenceInfo
- java.lang.Object
-
- proguard.classfile.kotlin.reflect.PropertyReferenceInfo
-
- All Implemented Interfaces:
CallableReferenceInfo
public class PropertyReferenceInfo extends java.lang.Object implements CallableReferenceInfo
Property reference info.
-
-
Constructor Summary
Constructors Constructor Description PropertyReferenceInfo(Clazz ownerClass, KotlinDeclarationContainerMetadata ownerMetadata, KotlinPropertyMetadata propertyMetadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(CallableReferenceInfoVisitor callableReferenceInfoVisitor)java.lang.StringgetName()The Kotlin name of the callable, the one which was declared in the source code (@JvmName doesn't change it).KotlinDeclarationContainerMetadatagetOwner()The class or package where the callable should be located, usually specified on the LHS of the '::' operator.java.lang.StringgetSignature()For properties this is the signature of it's JVM getter method.voidownerAccept(KotlinMetadataVisitor kotlinMetadataVisitor)
-
-
-
Constructor Detail
-
PropertyReferenceInfo
public PropertyReferenceInfo(Clazz ownerClass, KotlinDeclarationContainerMetadata ownerMetadata, KotlinPropertyMetadata propertyMetadata)
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:CallableReferenceInfoThe Kotlin name of the callable, the one which was declared in the source code (@JvmName doesn't change it).- Specified by:
getNamein interfaceCallableReferenceInfo- Returns:
- The Kotlin name.
-
getSignature
public java.lang.String getSignature()
For properties this is the signature of it's JVM getter method.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".
- Specified by:
getSignaturein interfaceCallableReferenceInfo- Returns:
- the signature.
-
getOwner
public KotlinDeclarationContainerMetadata getOwner()
Description copied from interface:CallableReferenceInfoThe class or package where the callable should be located, usually specified on the LHS of the '::' operator.Note: this is not necessarily the location where the callable is *declared* - it could be declared in a superclass.
- Specified by:
getOwnerin interfaceCallableReferenceInfo- Returns:
- The owner.
-
accept
public void accept(CallableReferenceInfoVisitor callableReferenceInfoVisitor)
- Specified by:
acceptin interfaceCallableReferenceInfo
-
ownerAccept
public void ownerAccept(KotlinMetadataVisitor kotlinMetadataVisitor)
- Specified by:
ownerAcceptin interfaceCallableReferenceInfo
-
-