Package io.quarkus.gizmo
Interface TryBlock
- All Superinterfaces:
AutoCloseable,BytecodeCreator
- All Known Implementing Classes:
TryBlockImpl
A
try block. If the flow of control exits the bottom of the try block, it will resume after
the point the block was declared in the enclosing scope.-
Method Summary
Modifier and TypeMethodDescriptiondefault CatchBlockCreatorAdd acatchblock in the same manner asaddCatch(String).Add acatchblock.Methods inherited from interface io.quarkus.gizmo.BytecodeCreator
add, arrayLength, assign, bitwiseAnd, bitwiseOr, bitwiseXor, breakScope, breakScope, checkCast, checkCast, close, compareDouble, compareFloat, compareLong, continueScope, continueScope, convertPrimitive, createFunction, createScope, createVariable, createVariable, divide, enumSwitch, forEach, getMethodParam, getThis, ifFalse, ifGreaterEqualZero, ifGreaterThanZero, ifIntegerEqual, ifIntegerGreaterEqual, ifIntegerGreaterThan, ifIntegerLessEqual, ifIntegerLessThan, ifLessEqualZero, ifLessThanZero, ifNonZero, ifNotNull, ifNull, ifReferencesEqual, ifReferencesNotEqual, ifThenElse, ifTrue, ifZero, increment, instanceOf, instanceOf, invokeInterfaceMethod, invokeInterfaceMethod, invokeSpecialInterfaceMethod, invokeSpecialInterfaceMethod, invokeSpecialMethod, invokeSpecialMethod, invokeStaticInterfaceMethod, invokeStaticInterfaceMethod, invokeStaticMethod, invokeStaticMethod, invokeVirtualMethod, invokeVirtualMethod, isScopedWithin, load, load, load, load, load, load, load, load, load, load, loadClass, loadClass, loadClass, loadClassFromTCCL, loadClassFromTCCL, loadClassFromTCCL, loadNull, marshalAsArray, multiply, newArray, newArray, newArray, newArray, newInstance, newInstance, readArrayValue, readArrayValue, readInstanceField, readInstanceField, readStaticField, readStaticField, remainder, returnBoolean, returnInt, returnNull, returnValue, returnVoid, stringSwitch, subtract, throwException, throwException, throwException, tryBlock, whileLoop, writeArrayValue, writeArrayValue, writeInstanceField, writeInstanceField, writeStaticField, writeStaticField
-
Method Details
-
addCatch
Add acatchblock. Thecatchblock will be emitted after thetryblock. If the flow of control exits the bottom of thecatchblock, it will resume after the point where thetryblock was declared in the enclosing scope. The parent scope of thecatchblock is the same as the parent scope of thetryblock.- Parameters:
exceptionType- the exception type to catch (must not benull)- Returns:
- the catch block (not
null)
-
addCatch
Add acatchblock in the same manner asaddCatch(String).- Parameters:
exceptionType- the exception type (must not benull)- Returns:
- the catch block (not
null)
-