org.jetbrains.kotlin.descriptors.impl
Class DeclarationDescriptorImpl
java.lang.Object
org.jetbrains.kotlin.descriptors.annotations.AnnotatedImpl
org.jetbrains.kotlin.descriptors.impl.DeclarationDescriptorImpl
- All Implemented Interfaces:
- Annotated, DeclarationDescriptor, Named
- Direct Known Subclasses:
- AbstractReceiverParameterDescriptor, DeclarationDescriptorNonRootImpl
public abstract class DeclarationDescriptorImpl
- extends AnnotatedImpl
- implements DeclarationDescriptor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DeclarationDescriptorImpl
public DeclarationDescriptorImpl(@NotNull
Annotations annotations,
@NotNull
Name name)
getName
@NotNull
public Name getName()
- Specified by:
getName
in interface Named
getOriginal
@NotNull
public DeclarationDescriptor getOriginal()
- Specified by:
getOriginal
in interface DeclarationDescriptor
- 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
acceptVoid
public void acceptVoid(DeclarationDescriptorVisitor<java.lang.Void,java.lang.Void> visitor)
- Specified by:
acceptVoid
in interface DeclarationDescriptor
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
toString
@NotNull
public static java.lang.String toString(@NotNull
DeclarationDescriptor descriptor)