public interface ValueParameterDescriptor extends VariableDescriptor, Annotated
| Modifier and Type | Method and Description |
|---|---|
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 |
getType() |
JetType |
getVarargElementType() |
boolean |
hasDefaultValue()
The front-end relies on this property when resolving function calls
|
getContainingDeclaration, isVar, substitutegetExpectedThisObject, getReceiverParameter, getReturnType, getTypeParameters, getValueParametersgetVisibilityaccept, acceptVoidgetAnnotationsint getIndex()
boolean hasDefaultValue()
true iff the parameter has a default value, i.e. declares it or inherits
by overriding a parameter in an overridden function.boolean declaresDefaultValue()
true iff the parameter declares a default value, i.e. explicitly specifies it in the function header@Nullable JetType getVarargElementType()
@NotNull JetType getType()
getType in interface VariableDescriptor@NotNull ValueParameterDescriptor getOriginal()
getOriginal in interface CallableDescriptorgetOriginal in interface DeclarationDescriptorthis object if the current descriptor is original itself@NotNull ValueParameterDescriptor copy(DeclarationDescriptor newOwner, Name newName)
@NotNull java.util.Set<? extends ValueParameterDescriptor> getOverriddenDescriptors()
getOverriddenDescriptors in interface CallableDescriptorvoid addOverriddenDescriptor(@NotNull ValueParameterDescriptor overridden)