|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jetbrains.jet.codegen.when.SwitchCodegen
org.jetbrains.jet.codegen.when.EnumSwitchCodegen
public class EnumSwitchCodegen
| Field Summary |
|---|
| Fields inherited from class org.jetbrains.jet.codegen.when.SwitchCodegen |
|---|
bindingContext, codegen, defaultLabel, elseLabel, endLabel, entryLabels, expression, isStatement, resultType, subjectType, transitionsTable, v |
| Constructor Summary | |
|---|---|
EnumSwitchCodegen(JetWhenExpression expression,
boolean isStatement,
ExpressionCodegen codegen,
WhenByEnumsMapping mapping)
|
|
| Method Summary | |
|---|---|
protected void |
generateSubject()
Should generate int subject on top of the stack Default implementation just run codegen for actual subject of expression May also gen nullability check if needed |
protected void |
processConstant(CompileTimeConstant constant,
org.jetbrains.org.objectweb.asm.Label entryLabel)
|
| Methods inherited from class org.jetbrains.jet.codegen.when.SwitchCodegen |
|---|
generate, generateEntries, generateNullCheckIfNeeded, putTransitionOnce |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnumSwitchCodegen(@NotNull
JetWhenExpression expression,
boolean isStatement,
@NotNull
ExpressionCodegen codegen,
@NotNull
WhenByEnumsMapping mapping)
| Method Detail |
|---|
protected void generateSubject()
SwitchCodegen
generateSubject in class SwitchCodegen
protected void processConstant(@NotNull
CompileTimeConstant constant,
@NotNull
org.jetbrains.org.objectweb.asm.Label entryLabel)
processConstant in class SwitchCodegen
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||