KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > cglib > reflect > MemberSwitchBean


1 /*
2  * Copyright 2003,2004 The Apache Software Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package net.sf.cglib.reflect;
17
18 public class MemberSwitchBean {
19     public int init = -1;
20     
21     public MemberSwitchBean() { init = 0; }
22     public MemberSwitchBean(double foo) { init = 1; }
23     public MemberSwitchBean(int foo) { init = 2; }
24     public MemberSwitchBean(int foo, String JavaDoc bar, String JavaDoc baz) { init = 3; }
25     public MemberSwitchBean(int foo, String JavaDoc bar, double baz) { init = 4; }
26     public MemberSwitchBean(int foo, short bar, long baz) { init = 5; }
27     public MemberSwitchBean(int foo, String JavaDoc bar) { init = 6; }
28
29     public int foo() { return 0; }
30     public int foo(double foo) { return 1; }
31     public int foo(int foo) { return 2; }
32     public int foo(int foo, String JavaDoc bar, String JavaDoc baz) { return 3; }
33     public int foo(int foo, String JavaDoc bar, double baz) { return 4; }
34     public int foo(int foo, short bar, long baz) { return 5; }
35     public int foo(int foo, String JavaDoc bar) { return 6; }
36
37     public int bar() { return 7; }
38     public int bar(double foo) { return 8; }
39
40     int pkg() { return 9; }
41
42     public static int staticMethod() { return 10; }
43 }
44
45
Popular Tags