railo.transformer.bytecode.statement
Class Switch
java.lang.Object
railo.transformer.bytecode.statement.StatementBase
railo.transformer.bytecode.statement.Switch
- All Implemented Interfaces:
- Statement, FlowControl, HasBodies
public final class Switch
- extends StatementBase
- implements FlowControl, HasBodies
Methods inherited from class railo.transformer.bytecode.statement.StatementBase |
getDescendantCount, getEndLine, getLine, getParent, getStartLine, hasFlowController, setEndLine, setHasFlowController, setLine, setParent, setStartLine, writeOut |
Switch
public Switch(Expression expr,
int startline,
int endline)
addCase
public void addCase(Expression expr,
Body body)
addCase
public void addCase(Expression expr,
Body body,
int startline,
int endline)
setDefaultCase
public void setDefaultCase(Body body)
_writeOut
public void _writeOut(BytecodeContext bc)
throws BytecodeException
- Description copied from class:
StatementBase
- write out the stament to the adater
- Specified by:
_writeOut
in class StatementBase
- Throws:
BytecodeException
- See Also:
railo.transformer.bytecode.statement.StatementBase#_writeOut(org.objectweb.asm.commons.GeneratorAdapter)
getBreakLabel
public org.objectweb.asm.Label getBreakLabel()
- Specified by:
getBreakLabel
in interface FlowControl
- See Also:
FlowControl.getBreakLabel()
getContinueLabel
public org.objectweb.asm.Label getContinueLabel()
- Specified by:
getContinueLabel
in interface FlowControl
- See Also:
FlowControl.getContinueLabel()
getBodies
public Body[] getBodies()
- Specified by:
getBodies
in interface HasBodies
- See Also:
HasBodies.getBodies()
Copyright © 2012 Railo