Package org.jboss.jdeparser
Interface JCatch
-
- All Superinterfaces:
JBlock
,JCommentable
,JStatement
,JTry
public interface JCatch extends JTry
Acatch
branch for atry
block.- Author:
- David M. Lloyd
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.jdeparser.JBlock
JBlock.Braces
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JCatch
or(java.lang.Class<? extends java.lang.Throwable> orType)
Add another type option to this catch branch.JCatch
or(java.lang.String orType)
Add another type option to this catch branch.JCatch
or(JType orType)
Add another type option to this catch branch.-
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, xorAssign
-
Methods inherited from interface org.jboss.jdeparser.JCommentable
blockComment, lineComment
-
-
-
-
Method Detail
-
or
JCatch or(JType orType)
Add another type option to this catch branch.- Parameters:
orType
- the alternative type- Returns:
- this catch block
-
or
JCatch or(java.lang.String orType)
Add another type option to this catch branch.- Parameters:
orType
- the alternative type- Returns:
- this catch block
-
or
JCatch or(java.lang.Class<? extends java.lang.Throwable> orType)
Add another type option to this catch branch.- Parameters:
orType
- the alternative type- Returns:
- this catch block
-
-