public final class TryStatement extends StatementBase
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor visitor)
Accept the visitor and allow it to perform actions on this Node.
|
Pair<Variable,BlockStatement> |
addCatch(Type type,
String ident)
Add a new Catch block to this try statement.
|
BlockStatement |
bodyPart() |
Map<Type,Pair<Variable,BlockStatement>> |
catches() |
BlockStatement |
finalPart() |
copy, copy, getAncestor, id, parent, parent, postCopy, preCopy, toString
attributes, get, set
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
copy, copy, getAncestor, id, parent, parent
attributes, get, set
public BlockStatement bodyPart()
public BlockStatement finalPart()
public Map<Type,Pair<Variable,BlockStatement>> catches()
public Pair<Variable,BlockStatement> addCatch(Type type, String ident)
Copyright © 2017 Oracle. All rights reserved.