public final class Switch extends StatementBaseNoFinal implements FlowControlBreak, HasBodies
Modifier and Type | Class and Description |
---|---|
class |
Switch.Case |
Modifier and Type | Field and Description |
---|---|
static org.objectweb.asm.commons.Method |
INIT |
BREAK, CONTINUE, RETRY
Constructor and Description |
---|
Switch(Expression expr,
Position start,
Position end) |
Modifier and Type | Method and Description |
---|---|
void |
_writeOut(BytecodeContext bc)
write out the stament to the adater
|
void |
addCase(Expression expr,
Body body) |
void |
addCase(Expression expr,
Body body,
Position start,
Position end) |
Body[] |
getBodies() |
org.objectweb.asm.Label |
getBreakLabel() |
org.objectweb.asm.Label |
getContinueLabel() |
String |
getLabel() |
void |
setDefaultCase(Body body) |
getFlowControlFinal
getDescendantCount, getEnd, getParent, getStart, hasFlowController, setEnd, setHasFlowController, setParent, setStart, writeOut
public static final org.objectweb.asm.commons.Method INIT
public Switch(Expression expr, Position start, Position end)
public void addCase(Expression expr, Body body)
public void addCase(Expression expr, Body body, Position start, Position end)
public void setDefaultCase(Body body)
public void _writeOut(BytecodeContext bc) throws BytecodeException
StatementBase
_writeOut
in class StatementBase
BytecodeException
lucee.transformer.bytecode.statement.StatementBase#_writeOut(org.objectweb.asm.commons.GeneratorAdapter)
public org.objectweb.asm.Label getBreakLabel()
getBreakLabel
in interface FlowControlBreak
lucee.transformer.bytecode.statement.FlowControl#getBreakLabel()
public org.objectweb.asm.Label getContinueLabel()
lucee.transformer.bytecode.statement.FlowControl#getContinueLabel()
public Body[] getBodies()
getBodies
in interface HasBodies
HasBodies.getBodies()
public String getLabel()
getLabel
in interface FlowControl
Copyright © 2015 Lucee