org.jetbrains.kotlin.codegen.when
Class SwitchCodegenUtil
java.lang.Object
org.jetbrains.kotlin.codegen.when.SwitchCodegenUtil
public class SwitchCodegenUtil
- extends java.lang.Object
|
Method Summary |
static SwitchCodegen |
buildAppropriateSwitchCodegenIfPossible(KtWhenExpression expression,
boolean isStatement,
boolean isExhaustive,
ExpressionCodegen codegen)
|
static boolean |
checkAllItemsAreConstantsSatisfying(KtWhenExpression expression,
BindingContext bindingContext,
boolean shouldInlineConstVals,
kotlin.jvm.functions.Function1<,java.lang.Boolean> predicate)
|
static java.lang.Iterable<> |
getAllConstants(KtWhenExpression expression,
BindingContext bindingContext,
boolean shouldInlineConstVals)
|
static java.lang.Iterable<> |
getConstantsFromEntry(KtWhenEntry entry,
BindingContext bindingContext,
boolean shouldInlineConstVals)
|
| 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
KtWhenExpression expression,
@NotNull
BindingContext bindingContext,
boolean shouldInlineConstVals,
kotlin.jvm.functions.Function1<,java.lang.Boolean> predicate)
getAllConstants
@NotNull
public static java.lang.Iterable<> getAllConstants(@NotNull
KtWhenExpression expression,
@NotNull
BindingContext bindingContext,
boolean shouldInlineConstVals)
getConstantsFromEntry
@NotNull
public static java.lang.Iterable<> getConstantsFromEntry(@NotNull
KtWhenEntry entry,
@NotNull
BindingContext bindingContext,
boolean shouldInlineConstVals)
buildAppropriateSwitchCodegenIfPossible
@Nullable
public static SwitchCodegen buildAppropriateSwitchCodegenIfPossible(@NotNull
KtWhenExpression expression,
boolean isStatement,
boolean isExhaustive,
@NotNull
ExpressionCodegen codegen)