org.jetbrains.jet.codegen.when
Class SwitchCodegenUtil

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

public class SwitchCodegenUtil
extends java.lang.Object


Constructor Summary
SwitchCodegenUtil()
           
 
Method Summary
static SwitchCodegen buildAppropriateSwitchCodegenIfPossible(JetWhenExpression expression, boolean isStatement, ExpressionCodegen codegen)
           
static boolean checkAllItemsAreConstantsSatisfying(JetWhenExpression expression, BindingContext bindingContext, kotlin.Function1<CompileTimeConstant,java.lang.Boolean> predicate)
           
static java.lang.Iterable<CompileTimeConstant> getAllConstants(JetWhenExpression expression, BindingContext bindingContext)
           
static java.lang.Iterable<CompileTimeConstant> getConstantsFromEntry(JetWhenEntry 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
                                                          JetWhenExpression expression,
                                                          @NotNull
                                                          BindingContext bindingContext,
                                                          kotlin.Function1<CompileTimeConstant,java.lang.Boolean> predicate)

getAllConstants

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

getConstantsFromEntry

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

buildAppropriateSwitchCodegenIfPossible

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