Modifier and Type | Method and Description |
---|---|
List<Catch> |
getCatches()
Gets the list of catches as an list of
Catch . |
Finally |
getFinally()
Gets the optional
Finally statement. |
Catch |
newCatch(Type type,
String name)
Adds a new
Catch statement to this Try . |
TryResource |
newResource(Type type,
String name,
Expression expr)
Adds a new resource declaration to this
Try . |
comment, getLabel, isAbruptCompletionStatement, setLabel
getStatements, insertStatement, insertStatement, newBreak, newContinue, newDeclarationLet, newDoWhile, newEmpty, newFor, newIf, newLet, newLocalBlock, newLocalClass, newLocalClass, newReturn, newStmt, newSwitch, newSynchronized, newThrow, newTry, newWhile, removeStmt
applyStyle, cast, getComment, isActive, isBlockWithAbruptCompletion, setComment, toCode, visit, vm
Finally getFinally()
Finally
statement.TryResource newResource(Type type, String name, Expression expr)
Try
.Copyright © 2000–2018 jenesis4java. All rights reserved.