org.jetbrains.jet.codegen.when
Class SwitchCodegenUtil
java.lang.Object
org.jetbrains.jet.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.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)