|
|||||||||
| 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.StringSwitchCodegen
public class StringSwitchCodegen
| 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 | |
|---|---|
StringSwitchCodegen(JetWhenExpression expression,
boolean isStatement,
ExpressionCodegen codegen)
|
|
| Method Summary | |
|---|---|
void |
generate()
Generates bytecode for entire when expression |
protected void |
generateEntries()
|
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 |
|---|
generateNullCheckIfNeeded, putTransitionOnce |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringSwitchCodegen(@NotNull
JetWhenExpression expression,
boolean isStatement,
@NotNull
ExpressionCodegen codegen)
| Method Detail |
|---|
protected void processConstant(@NotNull
CompileTimeConstant constant,
@NotNull
org.jetbrains.org.objectweb.asm.Label entryLabel)
processConstant in class SwitchCodegenpublic void generate()
SwitchCodegen
generate in class SwitchCodegenprotected void generateSubject()
SwitchCodegen
generateSubject in class SwitchCodegenprotected void generateEntries()
generateEntries in class SwitchCodegen
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||