KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > corext > refactoring > code > flow > TryFlowInfo


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.internal.corext.refactoring.code.flow;
12
13 class TryFlowInfo extends FlowInfo {
14     
15     public TryFlowInfo() {
16         super();
17     }
18     
19     public void mergeTry(FlowInfo info, FlowContext context) {
20         if (info == null)
21             return;
22             
23         assign(info);
24     }
25     
26     public void mergeCatch(FlowInfo info, FlowContext context) {
27         if (info == null)
28             return;
29             
30         mergeConditional(info, context);
31     }
32     
33     public void mergeFinally(FlowInfo info, FlowContext context) {
34         if (info == null)
35             return;
36             
37         mergeSequential(info, context);
38     }
39 }
40
41
Popular Tags