org.jetbrains.jet.lang.descriptors.impl
Class SimpleFunctionDescriptorImpl

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
All Implemented Interfaces:
Annotated, CallableDescriptor, CallableMemberDescriptor, DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithVisibility, FunctionDescriptor, MemberDescriptor, Named, SimpleFunctionDescriptor
Direct Known Subclasses:
AccessorForFunctionDescriptor, AnonymousFunctionDescriptor, ErrorSimpleFunctionDescriptorImpl

public class SimpleFunctionDescriptorImpl
extends FunctionDescriptorImpl
implements SimpleFunctionDescriptor


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
SimpleFunctionDescriptorImpl(DeclarationDescriptor containingDeclaration, java.util.List<AnnotationDescriptor> annotations, Name name, CallableMemberDescriptor.Kind kind)
           
SimpleFunctionDescriptorImpl(DeclarationDescriptor containingDeclaration, java.util.List<AnnotationDescriptor> annotations, Name name, CallableMemberDescriptor.Kind kind, SimpleFunctionDescriptor originalOfSynthesized)
           
 
Method Summary
 SimpleFunctionDescriptor copy(DeclarationDescriptor newOwner, Modality modality, Visibility visibility, CallableMemberDescriptor.Kind kind, boolean copyOverrides)
           
protected  FunctionDescriptorImpl createSubstitutedCopy(DeclarationDescriptor newOwner, boolean preserveOriginal, CallableMemberDescriptor.Kind kind)
           
 SimpleFunctionDescriptor getOriginal()
           
 SimpleFunctionDescriptor getOriginalOfSynthesized()
           
 SimpleFunctionDescriptorImpl initialize(JetType receiverParameterType, ReceiverParameterDescriptor expectedThisObject, java.util.List<? extends TypeParameterDescriptor> typeParameters, java.util.List<ValueParameterDescriptor> unsubstitutedValueParameters, JetType unsubstitutedReturnType, Modality modality, Visibility visibility, boolean isInline)
           
 boolean isInline()
           
 
Methods inherited from class org.jetbrains.jet.lang.descriptors.impl.FunctionDescriptorImpl
accept, addOverriddenDescriptor, doSubstitute, getExpectedThisObject, getKind, getModality, getOverriddenDescriptors, getReceiverParameter, getReturnType, getTypeParameters, getValueParameters, getVisibility, initialize, 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

SimpleFunctionDescriptorImpl

public SimpleFunctionDescriptorImpl(@NotNull
                                    DeclarationDescriptor containingDeclaration,
                                    @NotNull
                                    java.util.List<AnnotationDescriptor> annotations,
                                    @NotNull
                                    Name name,
                                    @NotNull
                                    CallableMemberDescriptor.Kind kind)

SimpleFunctionDescriptorImpl

public SimpleFunctionDescriptorImpl(@NotNull
                                    DeclarationDescriptor containingDeclaration,
                                    @NotNull
                                    java.util.List<AnnotationDescriptor> annotations,
                                    @NotNull
                                    Name name,
                                    @NotNull
                                    CallableMemberDescriptor.Kind kind,
                                    @Nullable
                                    SimpleFunctionDescriptor originalOfSynthesized)
Method Detail

initialize

public SimpleFunctionDescriptorImpl initialize(@Nullable
                                               JetType receiverParameterType,
                                               @Nullable
                                               ReceiverParameterDescriptor expectedThisObject,
                                               @NotNull
                                               java.util.List<? extends TypeParameterDescriptor> typeParameters,
                                               @NotNull
                                               java.util.List<ValueParameterDescriptor> unsubstitutedValueParameters,
                                               @Nullable
                                               JetType unsubstitutedReturnType,
                                               @Nullable
                                               Modality modality,
                                               @NotNull
                                               Visibility visibility,
                                               boolean isInline)

getOriginal

@NotNull
public SimpleFunctionDescriptor 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 FunctionDescriptorImpl
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

createSubstitutedCopy

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

copy

@NotNull
public SimpleFunctionDescriptor copy(DeclarationDescriptor newOwner,
                                             Modality modality,
                                             Visibility visibility,
                                             CallableMemberDescriptor.Kind kind,
                                             boolean copyOverrides)
Specified by:
copy in interface CallableMemberDescriptor
Specified by:
copy in interface FunctionDescriptor
Specified by:
copy in interface SimpleFunctionDescriptor

isInline

public boolean isInline()
Specified by:
isInline in interface SimpleFunctionDescriptor

getOriginalOfSynthesized

@Nullable
public SimpleFunctionDescriptor getOriginalOfSynthesized()