org.jetbrains.jet.lang.resolve.java.descriptor
Class JavaMethodDescriptor
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
org.jetbrains.jet.lang.resolve.java.descriptor.JavaMethodDescriptor
- All Implemented Interfaces:
- Annotated, CallableDescriptor, CallableMemberDescriptor, DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithSource, DeclarationDescriptorWithVisibility, FunctionDescriptor, MemberDescriptor, Named, SimpleFunctionDescriptor, JavaCallableMemberDescriptor
public class JavaMethodDescriptor
- extends SimpleFunctionDescriptorImpl
- implements JavaCallableMemberDescriptor
| Methods inherited from class org.jetbrains.jet.lang.descriptors.impl.FunctionDescriptorImpl |
accept, addOverriddenDescriptor, doSubstitute, getExpectedThisObject, getKind, getModality, getOverriddenDescriptors, getReceiverParameter, getReturnType, getSubstitutedValueParameters, getTypeParameters, getValueParameters, getVisibility, 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 |
JavaMethodDescriptor
protected JavaMethodDescriptor(@NotNull
DeclarationDescriptor containingDeclaration,
@Nullable
SimpleFunctionDescriptor original,
@NotNull
Annotations annotations,
@NotNull
Name name,
@NotNull
CallableMemberDescriptor.Kind kind,
@NotNull
SourceElement source)
createJavaMethod
@NotNull
public static JavaMethodDescriptor createJavaMethod(@NotNull
DeclarationDescriptor containingDeclaration,
@NotNull
Annotations annotations,
@NotNull
Name name,
@NotNull
SourceElement source)
hasStableParameterNames
public boolean hasStableParameterNames()
- Description copied from interface:
CallableDescriptor
- Kotlin functions always have stable parameter names that can be reliably used when calling them with named arguments.
Functions loaded from platform definitions (e.g. Java binaries or JS) may have unstable parameter names that vary from
one platform installation to another. These names can not be used reliably for calls with named arguments.
- Specified by:
hasStableParameterNames in interface CallableDescriptor- Overrides:
hasStableParameterNames in class FunctionDescriptorImpl
setHasStableParameterNames
public void setHasStableParameterNames(boolean hasStableParameterNames)
hasSynthesizedParameterNames
public boolean hasSynthesizedParameterNames()
- Description copied from interface:
CallableDescriptor
- Sometimes parameter names are not available at all (e.g. Java binaries with not enough debug information).
In this case, getName() returns synthetic names such as "p0", "p1" etc.
- Specified by:
hasSynthesizedParameterNames in interface CallableDescriptor- Overrides:
hasSynthesizedParameterNames in class FunctionDescriptorImpl
setHasSynthesizedParameterNames
public void setHasSynthesizedParameterNames(boolean hasSynthesizedParameterNames)
createSubstitutedCopy
@NotNull
protected FunctionDescriptorImpl createSubstitutedCopy(@NotNull
DeclarationDescriptor newOwner,
@Nullable
FunctionDescriptor original,
@NotNull
CallableMemberDescriptor.Kind kind)
- Overrides:
createSubstitutedCopy in class SimpleFunctionDescriptorImpl