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(JetWhenExpression expression, BindingTrace trace)
           
static ClassDescriptor getClassDescriptorOfTypeIfEnum(JetType type)
           
static boolean isWhenByEnum(JetWhenExpression expression, BindingContext context)
           
static boolean isWhenExhaustive(JetWhenExpression expression, BindingTrace trace)
           
static boolean isWhenOnEnumExhaustive(JetWhenExpression expression, BindingTrace trace, ClassDescriptor enumClassDescriptor)
           
static boolean mustHaveElse(JetWhenExpression 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
                                   JetWhenExpression expression,
                                   @NotNull
                                   BindingTrace trace)

isWhenByEnum

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

getClassDescriptorOfTypeIfEnum

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

isWhenOnEnumExhaustive

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

isWhenExhaustive

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

containsNullCase

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