public class ValueParameterDescriptorImpl extends VariableDescriptorImpl implements MutableValueParameterDescriptor
| Constructor and Description |
|---|
ValueParameterDescriptorImpl(DeclarationDescriptor containingDeclaration,
int index,
java.util.List<AnnotationDescriptor> annotations,
Name name,
JetType outType,
boolean declaresDefaultValue,
JetType varargElementType) |
ValueParameterDescriptorImpl(DeclarationDescriptor containingDeclaration,
ValueParameterDescriptor original,
java.util.List<AnnotationDescriptor> annotations,
JetType outType,
JetType varargElementType) |
| Modifier and Type | Method and Description |
|---|---|
<R,D> R |
accept(DeclarationDescriptorVisitor<R,D> visitor,
D data) |
void |
addOverriddenDescriptor(ValueParameterDescriptor overridden) |
ValueParameterDescriptor |
copy(DeclarationDescriptor newOwner,
Name newName) |
boolean |
declaresDefaultValue()
The back-end should relies on this property when generating function signatures
|
int |
getIndex()
Returns the 0-based index of the value parameter in the parameter list of its containing function.
|
ValueParameterDescriptor |
getOriginal() |
java.util.Set<? extends ValueParameterDescriptor> |
getOverriddenDescriptors()
Parameter p1 overrides p2 iff
a) their respective owners (function declarations) f1 override f2
b) p1 and p2 have the same indices in the owners' parameter lists
|
JetType |
getVarargElementType() |
Visibility |
getVisibility() |
boolean |
hasDefaultValue()
The front-end relies on this property when resolving function calls
|
boolean |
isVar() |
void |
setType(JetType type) |
ValueParameterDescriptor |
substitute(TypeSubstitutor substitutor) |
getExpectedThisObject, getReceiverParameter, getReturnType, getType, getTypeParameters, getValueParameters, setOutTypegetContainingDeclarationacceptVoid, getName, toStringgetAnnotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTypegetContainingDeclarationgetExpectedThisObject, getReceiverParameter, getReturnType, getTypeParameters, getValueParametersacceptVoidgetAnnotationspublic ValueParameterDescriptorImpl(@NotNull DeclarationDescriptor containingDeclaration, int index, @NotNull java.util.List<AnnotationDescriptor> annotations, @NotNull Name name, @NotNull JetType outType, boolean declaresDefaultValue, @Nullable JetType varargElementType)
public ValueParameterDescriptorImpl(@NotNull DeclarationDescriptor containingDeclaration, @NotNull ValueParameterDescriptor original, @NotNull java.util.List<AnnotationDescriptor> annotations, @NotNull JetType outType, @Nullable JetType varargElementType)
public void setType(@NotNull JetType type)
setType in interface MutableValueParameterDescriptorpublic int getIndex()
ValueParameterDescriptorgetIndex in interface ValueParameterDescriptorpublic boolean hasDefaultValue()
ValueParameterDescriptorhasDefaultValue in interface ValueParameterDescriptortrue iff the parameter has a default value, i.e. declares it or inherits
by overriding a parameter in an overridden function.public boolean declaresDefaultValue()
ValueParameterDescriptordeclaresDefaultValue in interface ValueParameterDescriptortrue iff the parameter declares a default value, i.e. explicitly specifies it in the function header@Nullable public JetType getVarargElementType()
getVarargElementType in interface ValueParameterDescriptor@NotNull public ValueParameterDescriptor getOriginal()
getOriginal in interface CallableDescriptorgetOriginal in interface DeclarationDescriptorgetOriginal in interface ValueParameterDescriptorgetOriginal in class VariableDescriptorImplthis object if the current descriptor is original itself@NotNull public ValueParameterDescriptor substitute(@NotNull TypeSubstitutor substitutor)
substitute in interface CallableDescriptorsubstitute in interface DeclarationDescriptorsubstitute in interface VariableDescriptorpublic <R,D> R accept(DeclarationDescriptorVisitor<R,D> visitor, D data)
accept in interface DeclarationDescriptorpublic boolean isVar()
isVar in interface VariableDescriptor@NotNull public ValueParameterDescriptor copy(@NotNull DeclarationDescriptor newOwner, @NotNull Name newName)
copy in interface ValueParameterDescriptor@NotNull public Visibility getVisibility()
getVisibility in interface DeclarationDescriptorWithVisibility@NotNull public java.util.Set<? extends ValueParameterDescriptor> getOverriddenDescriptors()
ValueParameterDescriptorgetOverriddenDescriptors in interface CallableDescriptorgetOverriddenDescriptors in interface ValueParameterDescriptorgetOverriddenDescriptors in class VariableDescriptorImplpublic void addOverriddenDescriptor(@NotNull ValueParameterDescriptor overridden)
addOverriddenDescriptor in interface ValueParameterDescriptor