org.jetbrains.kotlin.cfg
Class WhenChecker

java.lang.Object
  extended by org.jetbrains.kotlin.cfg.WhenChecker

public final class WhenChecker
extends java.lang.Object


Method Summary
static boolean containsNullCase(KtWhenExpression expression, BindingTrace trace)
           
static ClassDescriptor getClassDescriptorOfTypeIfEnum(KotlinType type)
           
static boolean isWhenByEnum(KtWhenExpression expression, BindingContext context)
           
static boolean isWhenExhaustive(KtWhenExpression expression, BindingTrace trace)
           
static boolean isWhenOnEnumExhaustive(KtWhenExpression expression, BindingTrace trace, ClassDescriptor enumClassDescriptor)
           
static boolean mustHaveElse(KtWhenExpression expression, BindingTrace trace)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

mustHaveElse

public static boolean mustHaveElse(@NotNull
                                   KtWhenExpression expression,
                                   @NotNull
                                   BindingTrace trace)

isWhenByEnum

public static boolean isWhenByEnum(@NotNull
                                   KtWhenExpression expression,
                                   @NotNull
                                   BindingContext context)

getClassDescriptorOfTypeIfEnum

@Nullable
public static ClassDescriptor getClassDescriptorOfTypeIfEnum(@Nullable
                                                                      KotlinType type)

isWhenOnEnumExhaustive

public static boolean isWhenOnEnumExhaustive(@NotNull
                                             KtWhenExpression expression,
                                             @NotNull
                                             BindingTrace trace,
                                             @NotNull
                                             ClassDescriptor enumClassDescriptor)

isWhenExhaustive

public static boolean isWhenExhaustive(@NotNull
                                       KtWhenExpression expression,
                                       @NotNull
                                       BindingTrace trace)

containsNullCase

public static boolean containsNullCase(@NotNull
                                       KtWhenExpression expression,
                                       @NotNull
                                       BindingTrace trace)