org.jetbrains.kotlin.codegen.when
Class SwitchCodegenUtil
java.lang.Object
org.jetbrains.kotlin.codegen.when.SwitchCodegenUtil
public class SwitchCodegenUtil
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SwitchCodegenUtil
public SwitchCodegenUtil()
checkAllItemsAreConstantsSatisfying
public static boolean checkAllItemsAreConstantsSatisfying(@NotNull
JetWhenExpression expression,
@NotNull
BindingContext bindingContext,
kotlin.jvm.functions.Function1<,java.lang.Boolean> predicate)
getAllConstants
@NotNull
public static java.lang.Iterable<> getAllConstants(@NotNull
JetWhenExpression expression,
@NotNull
BindingContext bindingContext)
getConstantsFromEntry
@NotNull
public static java.lang.Iterable<> getConstantsFromEntry(@NotNull
JetWhenEntry entry,
@NotNull
BindingContext bindingContext)
buildAppropriateSwitchCodegenIfPossible
@Nullable
public static SwitchCodegen buildAppropriateSwitchCodegenIfPossible(@NotNull
JetWhenExpression expression,
boolean isStatement,
@NotNull
ExpressionCodegen codegen)