ASTNode (int role) { switch(role) { default: return null; case ChildRole.PARAMETER: return findChildByType(PARAMETER); case ChildRole.CATCH_KEYWORD: return findChildByType(CATCH_KEYWORD); case ChildRole.CATCH_BLOCK_PARAMETER_LPARENTH: return findChildByType(LPARENTH); case ChildRole.CATCH_BLOCK_PARAMETER_RPARENTH: return findChildByType(RPARENTH); case ChildRole.CATCH_BLOCK: return findChildByType(CODE_BLOCK); } }