Package org.jboss.jdeparser
Class ImplJCatch
java.lang.Object
org.jboss.jdeparser.BasicJCommentable
org.jboss.jdeparser.BasicJBlock
org.jboss.jdeparser.ImplJCatch
- All Implemented Interfaces:
BlockContent,JBlock,JCatch,JCommentable,JStatement,JTry,Writable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.jdeparser.JBlock
JBlock.Braces -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd acatchblock.Add acatchblock.Add acatchblock._finally()Add thefinallyblock for thistry.(package private) intgetMods()(package private) ImplJTrygetTry()getTypes()(package private) StringgetVar()Add 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.with(int mods, Class<? extends AutoCloseable> type, String var, JExpr init) Add a resource fortry-with-resources constructs.Add a resource fortry-with-resources constructs.Add a resource fortry-with-resources constructs.voidwrite(SourceFileWriter writer) Methods inherited from class org.jboss.jdeparser.BasicJBlock
_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, get, getParent, hasSingleItemOfType, label, label, lshrAssign, modAssign, mulAssign, orAssign, postDec, postInc, preDec, preInc, shlAssign, shrAssign, size, subAssign, tempName, tempVar, tempVar, tempVar, var, var, var, var, var, var, write, write, xorAssignMethods inherited from class org.jboss.jdeparser.BasicJCommentable
blockComment, lineComment, writeCommentsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
Field Details
-
_try
-
mods
private final int mods -
var
-
types
-
-
Constructor Details
-
ImplJCatch
-
-
Method Details
-
or
Description copied from interface:JCatchAdd another type option to this catch branch. -
or
Description copied from interface:JCatchAdd another type option to this catch branch. -
or
Description copied from interface:JCatchAdd another type option to this catch branch. -
with
Description copied from interface:JTryAdd a resource fortry-with-resources constructs. -
with
Description copied from interface:JTryAdd a resource fortry-with-resources constructs. -
with
Description copied from interface:JTryAdd a resource fortry-with-resources constructs. -
_catch
Description copied from interface:JTryAdd acatchblock. -
_catch
Description copied from interface:JTryAdd acatchblock. -
_catch
Description copied from interface:JTryAdd acatchblock. -
ignore
Description copied from interface:JTryAdd acatchfor an ignored exception. -
ignore
Description copied from interface:JTryAdd acatchfor an ignored exception. -
ignore
Description copied from interface:JTryAdd acatchfor an ignored exception. -
_finally
Description copied from interface:JTryAdd thefinallyblock for thistry. -
getTry
ImplJTry getTry() -
getTypes
-
getMods
int getMods() -
getVar
String getVar() -
write
- Specified by:
writein interfaceWritable- Overrides:
writein classBasicJBlock- Throws:
IOException
-