Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 3aaf0eaf31a2ff268b513dfc00bd4ae5b17cf2ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*******************************************************************************
 * Copyright (c) 2007 BEA Systems, Inc.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *******************************************************************************/
package targets.model.pa;

public class A implements IA {
	public String methodIAString(int int1) 
	{ 
		_fieldAint = int1;
		return String.valueOf(_fieldAint);
	}
	
	public void methodThrows1() throws ExceptionA {
		if (_fieldAint < 0) {
			throw new ExceptionA();
		}
	}
	
	public void methodThrows2() throws ExceptionA, UnsupportedOperationException {
		if (_fieldAint > 0) {
			throw new ExceptionA();
		}
		else {
			throw new UnsupportedOperationException();
		}
	}
	
	private int _fieldAint;
}

Back to the top