|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ASTryStatement
A try-statement, such as try { } catch (e) { }.
A statement container may have multiple catch-clauses and may have a single finally-clause. At either a catch-cluase or a finally-clause must be present.
The body of the try-statement (the braces right after the
try keyword) can be accessed by calling the methods of
StatementContainer on the ASTryStatement instance.
StatementContainer.newTryCatch(String, String),
StatementContainer.newTryFinally()| Method Summary | |
|---|---|
java.util.List |
getCatchClauses()
Returns a list of ASCatchClause. |
ASFinallyClause |
getFinallyClause()
|
ASCatchClause |
newCatchClause(java.lang.String var,
java.lang.String type)
|
ASFinallyClause |
newFinallyClause()
|
| Methods inherited from interface uk.co.badgersinfoil.metaas.dom.StatementContainer |
|---|
addComment, addStmt, containsCode, getStatementList, newBreak, newContinue, newDeclaration, newDeclaration, newDefaultXMLNamespace, newDoWhile, newDoWhile, newExprStmt, newExprStmt, newFor, newFor, newForEachIn, newForEachIn, newForIn, newForIn, newIf, newIf, newReturn, newReturn, newReturn, newSuper, newSwitch, newSwitch, newThrow, newTryCatch, newTryFinally, newWhile, newWhile, newWith, newWith |
| Method Detail |
|---|
ASCatchClause newCatchClause(java.lang.String var,
java.lang.String type)
java.util.List getCatchClauses()
ASCatchClause.
ASFinallyClause getFinallyClause()
ASFinallyClause newFinallyClause()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||