org.jetbrains.jet.lang.descriptors.impl
Class SimpleFunctionDescriptorImpl
java.lang.Object
org.jetbrains.jet.lang.descriptors.annotations.AnnotatedImpl
org.jetbrains.jet.lang.descriptors.impl.DeclarationDescriptorImpl
org.jetbrains.jet.lang.descriptors.impl.DeclarationDescriptorNonRootImpl
org.jetbrains.jet.lang.descriptors.impl.FunctionDescriptorImpl
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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jetbrains.jet.lang.descriptors.Named |
getName |
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)
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()