Package io.airlift.bytecode.control
Class TryCatch
- java.lang.Object
-
- io.airlift.bytecode.control.TryCatch
-
- All Implemented Interfaces:
BytecodeNode,FlowControl
public class TryCatch extends Object implements FlowControl
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTryCatch.CatchBlock
-
Constructor Summary
Constructors Constructor Description TryCatch(BytecodeNode tryNode, List<TryCatch.CatchBlock> catchBlocks)TryCatch(String comment, BytecodeNode tryNode, List<TryCatch.CatchBlock> catchBlocks)
-
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)List<TryCatch.CatchBlock>getCatchBlocks()List<BytecodeNode>getChildNodes()StringgetComment()BytecodeNodegetTryNode()
-
-
-
Constructor Detail
-
TryCatch
public TryCatch(BytecodeNode tryNode, List<TryCatch.CatchBlock> catchBlocks)
-
TryCatch
public TryCatch(String comment, BytecodeNode tryNode, List<TryCatch.CatchBlock> catchBlocks)
-
-
Method Detail
-
getComment
public String getComment()
- Specified by:
getCommentin interfaceFlowControl
-
getTryNode
public BytecodeNode getTryNode()
-
getCatchBlocks
public List<TryCatch.CatchBlock> getCatchBlocks()
-
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
-
-