org.jetbrains.jet.lang.descriptors
Interface CallableDescriptor

All Superinterfaces:
Annotated, DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithVisibility, Named
All Known Subinterfaces:
CallableMemberDescriptor, ConstructorDescriptor, FunctionDescriptor, JavaCallableMemberDescriptor, PropertyAccessorDescriptor, PropertyDescriptor, PropertyGetterDescriptor, PropertySetterDescriptor, ReceiverParameterDescriptor, SamAdapterDescriptor<D>, SimpleFunctionDescriptor, SynthesizedCallableMemberDescriptor<D>, ValueParameterDescriptor, VariableDescriptor
All Known Implementing Classes:
AbstractReceiverParameterDescriptor, AccessorForFunctionDescriptor, AccessorForPropertyBackingFieldInOuterClass, AccessorForPropertyDescriptor, AccessorForPropertyDescriptor.Getter, AccessorForPropertyDescriptor.Setter, AnonymousFunctionDescriptor, ConstructorDescriptorImpl, DeserializedSimpleFunctionDescriptor, ErrorSimpleFunctionDescriptorImpl, ExpressionAsFunctionDescriptor, FunctionDescriptorImpl, JavaMethodDescriptor, JavaPropertyDescriptor, LazyClassReceiverParameterDescriptor, LocalVariableDescriptor, PropertyAccessorDescriptorImpl, PropertyDescriptorImpl, PropertyGetterDescriptorImpl, PropertySetterDescriptorImpl, ReceiverParameterDescriptorImpl, SamConstructorDescriptor, ScriptCodeDescriptor, SimpleFunctionDescriptorImpl, ValueParameterDescriptorImpl, VariableDescriptorImpl

public interface CallableDescriptor
extends DeclarationDescriptorWithVisibility, DeclarationDescriptorNonRoot


Method Summary
 ReceiverParameterDescriptor getExpectedThisObject()
           
 CallableDescriptor getOriginal()
           
 java.util.Set<? extends CallableDescriptor> getOverriddenDescriptors()
           
 ReceiverParameterDescriptor getReceiverParameter()
           
 JetType getReturnType()
          Method may return null for not yet fully initialized object or if error occurred.
 java.util.List<TypeParameterDescriptor> getTypeParameters()
           
 java.util.List<ValueParameterDescriptor> getValueParameters()
           
 CallableDescriptor substitute(TypeSubstitutor substitutor)
           
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.DeclarationDescriptorWithVisibility
getVisibility
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.DeclarationDescriptorNonRoot
getContainingDeclaration
 
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
 

Method Detail

getReceiverParameter

@Nullable
ReceiverParameterDescriptor getReceiverParameter()

getExpectedThisObject

@Nullable
ReceiverParameterDescriptor getExpectedThisObject()

getTypeParameters

@NotNull
java.util.List<TypeParameterDescriptor> getTypeParameters()

getReturnType

@Nullable
JetType getReturnType()
Method may return null for not yet fully initialized object or if error occurred.


getOriginal

@NotNull
CallableDescriptor 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

substitute

CallableDescriptor substitute(@NotNull
                              TypeSubstitutor substitutor)
Specified by:
substitute in interface DeclarationDescriptor

getValueParameters

@NotNull
java.util.List<ValueParameterDescriptor> getValueParameters()

getOverriddenDescriptors

@NotNull
java.util.Set<? extends CallableDescriptor> getOverriddenDescriptors()