Class TryStatement
- java.lang.Object
-
- org.jd.core.v1.model.javasyntax.statement.TryStatement
-
- All Implemented Interfaces:
java.lang.Iterable<Statement>
,BaseStatement
,Statement
,Base<Statement>
- Direct Known Subclasses:
ClassFileTryStatement
public class TryStatement extends java.lang.Object implements Statement
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TryStatement.CatchClause
static class
TryStatement.Resource
-
Field Summary
Fields Modifier and Type Field Description protected DefaultList<TryStatement.CatchClause>
catchClauses
protected BaseStatement
finallyStatements
protected DefaultList<TryStatement.Resource>
resources
protected BaseStatement
tryStatements
-
Constructor Summary
Constructors Constructor Description TryStatement(BaseStatement tryStatements, DefaultList<TryStatement.CatchClause> catchClauses, BaseStatement finallyStatements)
TryStatement(DefaultList<TryStatement.Resource> resources, BaseStatement tryStatements, DefaultList<TryStatement.CatchClause> catchClauses, BaseStatement finallyStatements)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(StatementVisitor visitor)
DefaultList<TryStatement.CatchClause>
getCatchClauses()
BaseStatement
getFinallyStatements()
DefaultList<TryStatement.Resource>
getResources()
BaseStatement
getTryStatements()
void
setFinallyStatements(BaseStatement finallyStatements)
void
setTryStatements(BaseStatement tryStatements)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
resources
protected DefaultList<TryStatement.Resource> resources
-
tryStatements
protected BaseStatement tryStatements
-
catchClauses
protected DefaultList<TryStatement.CatchClause> catchClauses
-
finallyStatements
protected BaseStatement finallyStatements
-
-
Constructor Detail
-
TryStatement
public TryStatement(BaseStatement tryStatements, DefaultList<TryStatement.CatchClause> catchClauses, BaseStatement finallyStatements)
-
TryStatement
public TryStatement(DefaultList<TryStatement.Resource> resources, BaseStatement tryStatements, DefaultList<TryStatement.CatchClause> catchClauses, BaseStatement finallyStatements)
-
-
Method Detail
-
getResources
public DefaultList<TryStatement.Resource> getResources()
-
getTryStatements
public BaseStatement getTryStatements()
-
setTryStatements
public void setTryStatements(BaseStatement tryStatements)
-
getCatchClauses
public DefaultList<TryStatement.CatchClause> getCatchClauses()
-
getFinallyStatements
public BaseStatement getFinallyStatements()
-
setFinallyStatements
public void setFinallyStatements(BaseStatement finallyStatements)
-
accept
public void accept(StatementVisitor visitor)
- Specified by:
accept
in interfaceBaseStatement
-
-