Methods
Modifier and Type |
Method and Description |
static void |
addSuperTypes(JetType type,
java.util.Set<JetType> set) |
static Modality |
convertModality(Modality modality,
boolean makeNonAbstract) |
static VariableDescriptor |
filterNonExtensionProperty(java.util.Collection<VariableDescriptor> variables) |
static DeclarationDescriptor |
findTopLevelParent(DeclarationDescriptor declarationDescriptor) |
static java.util.Set<ClassDescriptor> |
getAllSuperClasses(ClassDescriptor klass) |
static ClassDescriptor |
getClassDescriptorForType(JetType type) |
static ClassDescriptor |
getClassForCorrespondingJavaNamespace(NamespaceDescriptor correspondingNamespace) |
static Name |
getClassObjectName(Name className) |
static Name |
getClassObjectName(java.lang.String className) |
static ConstructorDescriptor |
getConstructorOfDataClass(ClassDescriptor classDescriptor) |
static ConstructorDescriptor |
getConstructorOfSingletonObject(ClassDescriptor classDescriptor) |
static ClassDescriptor |
getContainingClass(JetScope scope) |
static Visibility |
getDefaultConstructorVisibility(ClassDescriptor classDescriptor) |
static ReceiverParameterDescriptor |
getExpectedThisObjectIfNeeded(DeclarationDescriptor containingDeclaration) |
static FqNameUnsafe |
getFQName(DeclarationDescriptor descriptor) |
static JetType |
getFunctionExpectedReturnType(FunctionDescriptor descriptor,
JetElement function) |
static ClassDescriptor |
getInnerClassByName(ClassDescriptor classDescriptor,
java.lang.String innerClassName) |
static <D extends DeclarationDescriptor> D |
getParentOfType(DeclarationDescriptor descriptor,
java.lang.Class<D> aClass) |
static <D extends DeclarationDescriptor> D |
getParentOfType(DeclarationDescriptor descriptor,
java.lang.Class<D> aClass,
boolean strict) |
static java.util.List<DeclarationDescriptor> |
getPathWithoutRootNsAndModule(DeclarationDescriptor descriptor) |
static PropertyDescriptor |
getPropertyDescriptor(JetParameter constructorParameter,
BindingContext bindingContext) |
static PropertyDescriptor |
getPropertyDescriptor(JetProperty property,
BindingContext bindingContext) |
static JetType |
getReceiverParameterType(ReceiverParameterDescriptor receiverParameterDescriptor) |
static java.util.List<java.lang.String> |
getSortedValueArguments(AnnotationDescriptor descriptor,
DescriptorRenderer rendererForTypesIfNecessary) |
static JetScope |
getStaticNestedClassesScope(ClassDescriptor descriptor) |
static java.util.List<ClassDescriptor> |
getSuperclassDescriptors(ClassDescriptor classDescriptor) |
static java.util.List<JetType> |
getValueParametersTypes(java.util.List<ValueParameterDescriptor> valueParameters) |
static JetType |
getVarargParameterType(JetType elementType) |
static JetType |
getVarargParameterType(JetType elementType,
Variance projectionKind) |
static boolean |
inStaticContext(DeclarationDescriptor descriptor) |
static boolean |
isAncestor(DeclarationDescriptor ancestor,
DeclarationDescriptor declarationDescriptor,
boolean strict) |
static boolean |
isAnonymous(ClassifierDescriptor descriptor) |
static boolean |
isClass(DeclarationDescriptor descriptor) |
static boolean |
isClassObject(DeclarationDescriptor descriptor) |
static boolean |
isConstructorOfStaticNestedClass(CallableDescriptor descriptor) |
static boolean |
isEnumClass(DeclarationDescriptor descriptor) |
static boolean |
isEnumClassObject(DeclarationDescriptor descriptor) |
static boolean |
isEnumEntry(DeclarationDescriptor descriptor) |
static boolean |
isEnumValueOfMethod(FunctionDescriptor functionDescriptor) |
static boolean |
isEnumValuesMethod(FunctionDescriptor functionDescriptor) |
static boolean |
isExternallyAccessible(PropertyDescriptor propertyDescriptor) |
static boolean |
isFunctionLiteral(FunctionDescriptor descriptor) |
static boolean |
isInSameModule(DeclarationDescriptor first,
DeclarationDescriptor second) |
static boolean |
isInSameNamespace(DeclarationDescriptor first,
DeclarationDescriptor second) |
static boolean |
isIteratorWithoutRemoveImpl(ClassDescriptor classDescriptor) |
static boolean |
isKindOf(DeclarationDescriptor descriptor,
ClassKind classKind) |
static boolean |
isKindOf(JetType jetType,
ClassKind classKind) |
static boolean |
isLocal(DeclarationDescriptor containerOfTheCurrentLocality,
DeclarationDescriptor candidate)
The primary case for local extensions is the following:
I had a locally declared extension function or a local variable of function type called foo
And I called it on my x
Now, someone added function foo() to the class of x
My code should not change
thus
local extension prevail over members (and members prevail over all non-local extensions)
|
static boolean |
isNotAny(DeclarationDescriptor superClassDescriptor) |
static boolean |
isRootNamespace(NamespaceDescriptor namespaceDescriptor) |
static boolean |
isStaticNestedClass(DeclarationDescriptor descriptor) |
static boolean |
isSubclass(ClassDescriptor subClass,
ClassDescriptor superClass) |
static boolean |
isTopLevelDeclaration(DeclarationDescriptor descriptor) |
static ReceiverValue |
safeGetValue(ReceiverParameterDescriptor receiverParameterDescriptor) |
static <D extends CallableDescriptor> D |
substituteBounds(D functionDescriptor) |