org.jetbrains.kotlin.codegen.when
Class SwitchCodegenUtil

java.lang.Object
  extended by org.jetbrains.kotlin.codegen.when.SwitchCodegenUtil

public class SwitchCodegenUtil
extends java.lang.Object


Constructor Summary
SwitchCodegenUtil()
           
 
Method Summary
static SwitchCodegen buildAppropriateSwitchCodegenIfPossible(KtWhenExpression expression, boolean isStatement, ExpressionCodegen codegen)
           
static boolean checkAllItemsAreConstantsSatisfying(KtWhenExpression expression, BindingContext bindingContext, kotlin.jvm.functions.Function1<,java.lang.Boolean> predicate)
           
static java.lang.Iterable<> getAllConstants(KtWhenExpression expression, BindingContext bindingContext)
           
static java.lang.Iterable<> getConstantsFromEntry(KtWhenEntry entry, BindingContext bindingContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwitchCodegenUtil

public SwitchCodegenUtil()
Method Detail

checkAllItemsAreConstantsSatisfying

public static boolean checkAllItemsAreConstantsSatisfying(@NotNull
                                                          KtWhenExpression expression,
                                                          @NotNull
                                                          BindingContext bindingContext,
                                                          kotlin.jvm.functions.Function1<,java.lang.Boolean> predicate)

getAllConstants

@NotNull
public static java.lang.Iterable<> getAllConstants(@NotNull
                                                                KtWhenExpression expression,
                                                                @NotNull
                                                                BindingContext bindingContext)

getConstantsFromEntry

@NotNull
public static java.lang.Iterable<> getConstantsFromEntry(@NotNull
                                                                      KtWhenEntry entry,
                                                                      @NotNull
                                                                      BindingContext bindingContext)

buildAppropriateSwitchCodegenIfPossible

@Nullable
public static SwitchCodegen buildAppropriateSwitchCodegenIfPossible(@NotNull
                                                                             KtWhenExpression expression,
                                                                             boolean isStatement,
                                                                             @NotNull
                                                                             ExpressionCodegen codegen)