org.jetbrains.kotlin.descriptors
Interface DeclarationDescriptor
- All Superinterfaces:
- Annotated, Named
- All Known Subinterfaces:
- CallableDescriptor, CallableMemberDescriptor, ClassDescriptor, ClassDescriptorWithResolutionScopes, ClassifierDescriptor, ClassOrPackageFragmentDescriptor, ConstructorDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithSource, DeclarationDescriptorWithVisibility, FunctionDescriptor, JavaCallableMemberDescriptor, JavaClassDescriptor, MemberDescriptor, ParameterDescriptor, PropertyAccessorDescriptor, PropertyDescriptor, PropertyGetterDescriptor, PropertySetterDescriptor, ReceiverParameterDescriptor, SamAdapterDescriptor<D>, ScriptDescriptor, SimpleFunctionDescriptor, TypeParameterDescriptor, VariableDescriptor
- All Known Implementing Classes:
- AbstractClassDescriptor, AbstractLazyTypeParameterDescriptor, AbstractReceiverParameterDescriptor, AbstractTypeParameterDescriptor, AccessorForPropertyDescriptor, AccessorForPropertyDescriptor.Getter, AccessorForPropertyDescriptor.Setter, AnonymousFunctionDescriptor, ClassDescriptorBase, ClassDescriptorImpl, ConstructorDescriptorImpl, DeclarationDescriptorImpl, DeclarationDescriptorNonRootImpl, EnumEntrySyntheticClassDescriptor, ErrorSimpleFunctionDescriptorImpl, FunctionDescriptorImpl, FunctionExpressionDescriptor, JavaConstructorDescriptor, JavaMethodDescriptor, JavaPropertyDescriptor, LazyClassDescriptor, LazyClassReceiverParameterDescriptor, LazySubstitutingClassDescriptor, LazyTypeParameterDescriptor, LocalVariableDescriptor, MutableClassDescriptor, PropertyAccessorDescriptorImpl, PropertyDescriptorImpl, PropertyGetterDescriptorImpl, PropertySetterDescriptorImpl, ReceiverParameterDescriptorImpl, SimpleFunctionDescriptorImpl, TypeParameterDescriptorImpl, VariableDescriptorImpl, VariableDescriptorWithInitializerImpl
public interface DeclarationDescriptor
- extends Annotated, Named
Methods inherited from interface org.jetbrains.kotlin.descriptors.Named |
getName |
getOriginal
@NotNull
DeclarationDescriptor getOriginal()
- Returns:
- The descriptor that corresponds to the original declaration of this element.
A descriptor can be obtained from its original by substituting type arguments (of the declaring class
or of the element itself).
returns
this
object if the current descriptor is original itself
getContainingDeclaration
@Nullable
DeclarationDescriptor getContainingDeclaration()
substitute
@Nullable
DeclarationDescriptor substitute(@NotNull
TypeSubstitutor substitutor)
accept
<R,D> R accept(DeclarationDescriptorVisitor<R,D> visitor,
D data)
acceptVoid
void acceptVoid(DeclarationDescriptorVisitor<java.lang.Void,java.lang.Void> visitor)