net.janino
Class Java.SwitchStatement

java.lang.Object
  |
  +--net.janino.Java.Located
        |
        +--net.janino.Java.BlockStatement
              |
              +--net.janino.Java.Statement
                    |
                    +--net.janino.Java.BreakableStatement
                          |
                          +--net.janino.Java.SwitchStatement
All Implemented Interfaces:
Java.Locatable, Java.Scope
Enclosing class:
Java

public static class Java.SwitchStatement
extends Java.BreakableStatement

14.10 The "switch" Statement


Fields inherited from class net.janino.Java.Statement
enclosingScope
 
Constructor Summary
Java.SwitchStatement(Scanner.Location location, Java.Scope enclosingScope)
           
 
Method Summary
 void addSwitchBlockStatementGroup(Java.SwitchBlockStatementGroup sbsg)
           
 boolean compile2()
           
 void setCondition(Java.Rvalue condition)
           
 
Methods inherited from class net.janino.Java.BreakableStatement
compile, getWhereToBreak
 
Methods inherited from class net.janino.Java.Statement
generatesCode, getEnclosingScope, leave
 
Methods inherited from class net.janino.Java.BlockStatement
addConstantFloatInfo, addConstantIntegerInfo, addConstantStringInfo, allocateLocalVariable, compileError, createDummyCodeAttribute, getLocation, newInserter, newOffset, newUnsetOffset, popInserter, pushInserter, restoreLocalVariables, saveLocalVariables, throwParseException, write, writeBranch, writeByte, writeConstantClassInfo, writeConstantDoubleInfo, writeConstantFieldrefInfo, writeConstantFloatInfo, writeConstantIntegerInfo, writeConstantInterfaceMethodrefInfo, writeConstantLongInfo, writeConstantMethodrefInfo, writeConstantStringInfo, writeInt, writeOffset, writeOpcode, writeShort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Java.SwitchStatement

public Java.SwitchStatement(Scanner.Location location,
                            Java.Scope enclosingScope)
Method Detail

setCondition

public void setCondition(Java.Rvalue condition)

addSwitchBlockStatementGroup

public void addSwitchBlockStatementGroup(Java.SwitchBlockStatementGroup sbsg)

compile2

public boolean compile2()
                 throws Java.CompileException
Overrides:
compile2 in class Java.BreakableStatement