Package io.airlift.bytecode.control
Class IfStatement
- java.lang.Object
-
- io.airlift.bytecode.control.IfStatement
-
- All Implemented Interfaces:
BytecodeNode,FlowControl
public class IfStatement extends Object implements FlowControl
-
-
Constructor Summary
Constructors Constructor Description IfStatement()IfStatement(String format, Object... args)
-
Method Summary
All 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)BytecodeBlockcondition()IfStatementcondition(BytecodeNode node)List<BytecodeNode>getChildNodes()StringgetComment()BytecodeBlockifFalse()IfStatementifFalse(BytecodeNode node)BytecodeBlockifTrue()IfStatementifTrue(BytecodeNode node)
-
-
-
Method Detail
-
getComment
public String getComment()
- Specified by:
getCommentin interfaceFlowControl
-
condition
public BytecodeBlock condition()
-
condition
public IfStatement condition(BytecodeNode node)
-
ifTrue
public BytecodeBlock ifTrue()
-
ifTrue
public IfStatement ifTrue(BytecodeNode node)
-
ifFalse
public BytecodeBlock ifFalse()
-
ifFalse
public IfStatement ifFalse(BytecodeNode node)
-
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
-
-