接口 CallableReferenceInfo
-
- 所有已知实现类:
FunctionReferenceInfo,JavaFieldReferenceInfo,JavaMethodReferenceInfo,JavaReferenceInfo,LocalVariableReferenceInfo,PropertyReferenceInfo
public interface CallableReferenceInfoInformation about callable references.
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 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()The signature of the callable.voidownerAccept(KotlinMetadataVisitor kotlinMetadataVisitor)
-
-
-
方法详细资料
-
getName
java.lang.String getName()
The Kotlin name of the callable, the one which was declared in the source code (@JvmName doesn't change it).- 返回:
- The Kotlin name.
-
getSignature
java.lang.String getSignature()
The signature of the callable.- 返回:
- The signature.
-
getOwner
KotlinDeclarationContainerMetadata getOwner()
The 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.
- 返回:
- The owner.
-
accept
void accept(CallableReferenceInfoVisitor callableReferenceInfoVisitor)
-
ownerAccept
void ownerAccept(KotlinMetadataVisitor kotlinMetadataVisitor)
-
-