Package io.airlift.bytecode.control
Class SwitchStatement
- java.lang.Object
-
- io.airlift.bytecode.control.SwitchStatement
-
- All Implemented Interfaces:
BytecodeNode,FlowControl
public class SwitchStatement extends Object implements FlowControl
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSwitchStatement.SwitchBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Taccept(BytecodeNode parent, BytecodeVisitor<T> visitor)voidaccept(org.objectweb.asm.MethodVisitor visitor, MethodGenerationContext generationContext)SortedSet<CaseStatement>cases()BytecodeExpressionexpression()List<BytecodeNode>getChildNodes()StringgetComment()BytecodeNodegetDefaultBody()LabelNodegetDefaultLabel()LabelNodegetEndLabel()static SwitchStatement.SwitchBuilderswitchBuilder()
-
-
-
Method Detail
-
switchBuilder
public static SwitchStatement.SwitchBuilder switchBuilder()
-
getComment
public String getComment()
- Specified by:
getCommentin interfaceFlowControl
-
expression
public BytecodeExpression expression()
-
cases
public SortedSet<CaseStatement> cases()
-
getDefaultLabel
public LabelNode getDefaultLabel()
-
getDefaultBody
public BytecodeNode getDefaultBody()
-
getEndLabel
public LabelNode getEndLabel()
-
accept
public void accept(org.objectweb.asm.MethodVisitor visitor, MethodGenerationContext generationContext)- Specified by:
acceptin interfaceBytecodeNode
-
getChildNodes
public List<BytecodeNode> getChildNodes()
- Specified by:
getChildNodesin interfaceBytecodeNode
-
accept
public <T> T accept(BytecodeNode parent, BytecodeVisitor<T> visitor)
- Specified by:
acceptin interfaceBytecodeNode
-
-