public class JTryStatement extends JStatement
Modifier and Type | Class and Description |
---|---|
static class |
JTryStatement.CatchClause
Represents the catch clause parts of the try statement.
|
Constructor and Description |
---|
JTryStatement(SourceInfo info,
JBlock tryBlock,
List<JTryStatement.CatchClause> catchClauses,
JBlock finallyBlock)
Construct a Java try statement.
|
Modifier and Type | Method and Description |
---|---|
List<JTryStatement.CatchClause> |
getCatchClauses() |
JBlock |
getFinallyBlock() |
JBlock |
getTryBlock() |
void |
traverse(JVisitor visitor,
Context ctx)
Causes this object to have the visitor visit itself and its children.
|
unconditionalControlBreak
getSourceInfo, setSourceInfo, toSource, toString
public JTryStatement(SourceInfo info, JBlock tryBlock, List<JTryStatement.CatchClause> catchClauses, JBlock finallyBlock)
info
- the source information.tryBlock
- the statement block inside the try construct.catchClauses
- each element of this list contains a catch clause.finallyBlock
- the statement block corresponding to the finally construct.public List<JTryStatement.CatchClause> getCatchClauses()
public JBlock getFinallyBlock()
public JBlock getTryBlock()
Copyright © 2018. All rights reserved.