Package io.quarkus.gizmo
Interface TryBlock
-
- All Superinterfaces:
java.lang.AutoCloseable,BytecodeCreator
- All Known Implementing Classes:
TryBlockImpl
public interface TryBlock extends BytecodeCreator
Atryblock. If the flow of control exits the bottom of thetryblock, it will resume after the point the block was declared in the enclosing scope.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CatchBlockCreatoraddCatch(java.lang.Class<? extends java.lang.Throwable> exceptionType)Add acatchblock in the same manner asaddCatch(String).CatchBlockCreatoraddCatch(java.lang.String exceptionType)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 Detail
-
addCatch
CatchBlockCreator addCatch(java.lang.String exceptionType)
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
default CatchBlockCreator addCatch(java.lang.Class<? extends java.lang.Throwable> exceptionType)
Add acatchblock in the same manner asaddCatch(String).- Parameters:
exceptionType- the exception type (must not benull)- Returns:
- the catch block (not
null)
-
-