uk.co.badgersinfoil.metaas.dom
Interface ASTryStatement

All Superinterfaces:
ScriptElement, Statement, StatementContainer

public interface ASTryStatement
extends StatementContainer, Statement

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.

See Also:
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

newCatchClause

ASCatchClause newCatchClause(java.lang.String var,
                             java.lang.String type)

getCatchClauses

java.util.List getCatchClauses()
Returns a list of ASCatchClause.


getFinallyClause

ASFinallyClause getFinallyClause()

newFinallyClause

ASFinallyClause newFinallyClause()


Copyright © 2006-2008 David Holroyd. All Rights Reserved.