org.jetbrains.jet.descriptors.serialization.descriptors
Class DeserializedSimpleFunctionDescriptor

java.lang.Object
  extended by org.jetbrains.jet.lang.descriptors.annotations.AnnotatedImpl
      extended by org.jetbrains.jet.lang.descriptors.impl.DeclarationDescriptorImpl
          extended by org.jetbrains.jet.lang.descriptors.impl.DeclarationDescriptorNonRootImpl
              extended by org.jetbrains.jet.lang.descriptors.impl.FunctionDescriptorImpl
                  extended by org.jetbrains.jet.lang.descriptors.impl.SimpleFunctionDescriptorImpl
                      extended by org.jetbrains.jet.descriptors.serialization.descriptors.DeserializedSimpleFunctionDescriptor
All Implemented Interfaces:
Annotated, CallableDescriptor, CallableMemberDescriptor, DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithVisibility, FunctionDescriptor, MemberDescriptor, Named, SimpleFunctionDescriptor

public class DeserializedSimpleFunctionDescriptor
extends SimpleFunctionDescriptorImpl


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jetbrains.jet.lang.descriptors.CallableMemberDescriptor
CallableMemberDescriptor.Kind
 
Field Summary
 
Fields inherited from class org.jetbrains.jet.lang.descriptors.impl.FunctionDescriptorImpl
expectedThisObject, modality, overriddenFunctions, typeParameters, unsubstitutedReturnType, unsubstitutedValueParameters, visibility
 
Constructor Summary
DeserializedSimpleFunctionDescriptor(DeclarationDescriptor containingDeclaration, ProtoBuf.Callable functionProto, AnnotationDeserializer annotationDeserializer, NameResolver nameResolver)
           
 
Method Summary
protected  FunctionDescriptorImpl createSubstitutedCopy(DeclarationDescriptor newOwner, boolean preserveOriginal, CallableMemberDescriptor.Kind kind)
           
 ProtoBuf.Callable getFunctionProto()
           
 NameResolver getNameResolver()
           
 DeserializedSimpleFunctionDescriptor getOriginal()
           
 
Methods inherited from class org.jetbrains.jet.lang.descriptors.impl.SimpleFunctionDescriptorImpl
copy, getInlineStrategy, initialize
 
Methods inherited from class org.jetbrains.jet.lang.descriptors.impl.FunctionDescriptorImpl
accept, addOverriddenDescriptor, doSubstitute, getExpectedThisObject, getKind, getModality, getOverriddenDescriptors, getReceiverParameter, getReturnType, getSubstitutedValueParameters, getTypeParameters, getValueParameters, getVisibility, setReturnType, setVisibility, substitute
 
Methods inherited from class org.jetbrains.jet.lang.descriptors.impl.DeclarationDescriptorNonRootImpl
getContainingDeclaration
 
Methods inherited from class org.jetbrains.jet.lang.descriptors.impl.DeclarationDescriptorImpl
acceptVoid, getName, toString
 
Methods inherited from class org.jetbrains.jet.lang.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.jet.lang.descriptors.FunctionDescriptor
getContainingDeclaration, getOverriddenDescriptors, substitute
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.CallableMemberDescriptor
addOverriddenDescriptor, getKind
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.CallableDescriptor
getExpectedThisObject, getReceiverParameter, getReturnType, getTypeParameters, getValueParameters
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.MemberDescriptor
getModality, getVisibility
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.DeclarationDescriptor
accept, acceptVoid
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.annotations.Annotated
getAnnotations
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.Named
getName
 

Constructor Detail

DeserializedSimpleFunctionDescriptor

public DeserializedSimpleFunctionDescriptor(@NotNull
                                            DeclarationDescriptor containingDeclaration,
                                            @NotNull
                                            ProtoBuf.Callable functionProto,
                                            @NotNull
                                            AnnotationDeserializer annotationDeserializer,
                                            @NotNull
                                            NameResolver nameResolver)
Method Detail

createSubstitutedCopy

protected FunctionDescriptorImpl createSubstitutedCopy(DeclarationDescriptor newOwner,
                                                       boolean preserveOriginal,
                                                       CallableMemberDescriptor.Kind kind)
Overrides:
createSubstitutedCopy in class SimpleFunctionDescriptorImpl

getOriginal

@NotNull
public DeserializedSimpleFunctionDescriptor getOriginal()
Specified by:
getOriginal in interface CallableDescriptor
Specified by:
getOriginal in interface CallableMemberDescriptor
Specified by:
getOriginal in interface DeclarationDescriptor
Specified by:
getOriginal in interface FunctionDescriptor
Specified by:
getOriginal in interface SimpleFunctionDescriptor
Overrides:
getOriginal in class SimpleFunctionDescriptorImpl
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

getFunctionProto

public ProtoBuf.Callable getFunctionProto()

getNameResolver

public NameResolver getNameResolver()