- All Superinterfaces:
JBlock,JCommentable,JStatement,JTry
- All Known Implementing Classes:
ImplJCatch
A
catch branch for a try block.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.jdeparser.JBlock
JBlock.Braces -
Method Summary
Modifier and TypeMethodDescriptionAdd acatchfor an ignored exception.Add acatchfor an ignored exception.Add acatchfor an ignored exception.Add another type option to this catch branch.Add another type option to this catch branch.Add another type option to this catch branch.Add a Java 9-style final variable resource fortry-with-resources constructs.Methods inherited from interface org.jboss.jdeparser.JBlock
_assert, _assert, _break, _break, _class, _continue, _continue, _do, _for, _if, _new, _new, _new, _newAnon, _newAnon, _newAnon, _return, _return, _switch, _synchronized, _throw, _try, _while, add, addAssign, andAssign, anonLabel, anonLabel, assign, blankLine, block, call, call, call, call, callStatic, callStatic, callStatic, callStatic, callSuper, callThis, divAssign, empty, forEach, forEach, forEach, forwardLabel, label, label, lshrAssign, modAssign, mulAssign, orAssign, postDec, postInc, preDec, preInc, shlAssign, shrAssign, subAssign, tempName, tempVar, tempVar, tempVar, var, var, var, var, var, var, xorAssignMethods inherited from interface org.jboss.jdeparser.JCommentable
blockComment, lineComment
-
Method Details
-
or
Add another type option to this catch branch.- Parameters:
orType- the alternative type- Returns:
- this catch block
-
or
Add another type option to this catch branch.- Parameters:
orType- the alternative type- Returns:
- this catch block
-
or
Add another type option to this catch branch.- Parameters:
orType- the alternative type- Returns:
- this catch block
-
with
Add a Java 9-style final variable resource fortry-with-resources constructs. -
ignore
Add acatchfor an ignored exception. -
ignore
Add acatchfor an ignored exception. -
ignore
Add acatchfor an ignored exception.
-