org.jetbrains.kotlin.descriptors.impl
Class DeclarationDescriptorNonRootImpl

java.lang.Object
  extended by org.jetbrains.kotlin.descriptors.annotations.AnnotatedImpl
      extended by org.jetbrains.kotlin.descriptors.impl.DeclarationDescriptorImpl
          extended by org.jetbrains.kotlin.descriptors.impl.DeclarationDescriptorNonRootImpl
All Implemented Interfaces:
Annotated, DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithSource, Named
Direct Known Subclasses:
AbstractTypeParameterDescriptor, FunctionDescriptorImpl, PropertyAccessorDescriptorImpl, VariableDescriptorImpl

public abstract class DeclarationDescriptorNonRootImpl
extends DeclarationDescriptorImpl
implements DeclarationDescriptorNonRoot


Constructor Summary
protected DeclarationDescriptorNonRootImpl(DeclarationDescriptor containingDeclaration, Annotations annotations, Name name, SourceElement source)
           
 
Method Summary
 DeclarationDescriptor getContainingDeclaration()
           
 DeclarationDescriptorWithSource getOriginal()
           
 SourceElement getSource()
           
 
Methods inherited from class org.jetbrains.kotlin.descriptors.impl.DeclarationDescriptorImpl
acceptVoid, getName, toString, toString
 
Methods inherited from class org.jetbrains.kotlin.descriptors.annotations.AnnotatedImpl
getAnnotations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.DeclarationDescriptor
accept, acceptVoid, substitute
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.annotations.Annotated
getAnnotations
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.Named
getName
 

Constructor Detail

DeclarationDescriptorNonRootImpl

protected DeclarationDescriptorNonRootImpl(@NotNull
                                           DeclarationDescriptor containingDeclaration,
                                           @NotNull
                                           Annotations annotations,
                                           @NotNull
                                           Name name,
                                           @NotNull
                                           SourceElement source)
Method Detail

getOriginal

@NotNull
public DeclarationDescriptorWithSource getOriginal()
Specified by:
getOriginal in interface DeclarationDescriptor
Specified by:
getOriginal in interface DeclarationDescriptorWithSource
Overrides:
getOriginal in class DeclarationDescriptorImpl
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

@NotNull
public DeclarationDescriptor getContainingDeclaration()
Specified by:
getContainingDeclaration in interface DeclarationDescriptor
Specified by:
getContainingDeclaration in interface DeclarationDescriptorNonRoot

getSource

@NotNull
public SourceElement getSource()
Specified by:
getSource in interface DeclarationDescriptorWithSource