/** * Returns the <code>catch</code> clause's statement block scope, i.e. * the content of the <code>catch</code> block. * * @return The <code>catch</code> clause's statement block scope. */ public StatementBlockScope getStatementBlockScope() { if (mBlockScope == null) { mBlockScope = new AST2StatementBlockScope((AST2JSOMTree) getTreeNode().GetChild(1), Owner.CATCH_CLAUSE, getTokenRewriteStream()); } return mBlockScope; }
/** * Returns the <code>try</code> statement's statement block scope, i.e. the * content of the <code>try</code> block. * * @return The <code>try</code> statement's statement block scope. */ public StatementBlockScope getStatementBlockScope() { if (mTryBlockScope == null) { mTryBlockScope = new AST2StatementBlockScope((AST2JSOMTree) getTreeNode().GetChild(0), Owner.TRY_STATEMENT, getTokenRewriteStream()); } return mTryBlockScope; }
/** * Returns the <code>finally</code> clause's statement block scope, i.e. the * content of the <code>finally</code> block. * * @return The <code>finally</code> clause's statement block scope or * <code>null</code> if the <code>try</code> statement has no * <code>finally</code> clause. */ public StatementBlockScope getFinallyStatementBlockScope() { if (mFinallyBlockScopeTree == null) { return null; // There's no 'finally' clause. } if (mFinallyBlockScope == null) { mFinallyBlockScope = new AST2StatementBlockScope( mFinallyBlockScopeTree, Owner.FINALLY_CLAUSE, getTokenRewriteStream()); } return mFinallyBlockScope; }
/** * Call back method that must be called as soon as the given <code> * StatementBlockScope</code> object has been traversed. * * @param pStatementBlockScope The <code>StatementBlockScope</code> object * that has just been traversed. */ public void actionPerformed( StatementBlockScope pStatementBlockScope) { // Nothing to do. }
/** * Call back method that must be called when the given <code> * StatementBlockScope</code> will become the next <i>traverse * candidate</i>. * * @param pStatementBlockScope The <code>StatementBlockScope</code> object * that will become the next <i>traverse * candidate</i>. */ public void performAction( StatementBlockScope pStatementBlockScope) { // Nothing to do. }
/** * Returns the statement block scope that belongs to the <code>synchronized * </code> statement. * * @return The statement block scope that belongs to the <code>synchronized * </code> statement. */ public StatementBlockScope getStatementBlockScope() { if (mBlockScope == null) { mBlockScope = new AST2StatementBlockScope((AST2JSOMTree) getTreeNode().GetChild(1), Owner.SYNCHRONIZED_STATEMENT, getTokenRewriteStream()); } return mBlockScope; }