01: /*
02: * Copyright 2003,2004 The Apache Software Foundation
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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() {
22: init = 0;
23: }
24:
25: public MemberSwitchBean(double foo) {
26: init = 1;
27: }
28:
29: public MemberSwitchBean(int foo) {
30: init = 2;
31: }
32:
33: public MemberSwitchBean(int foo, String bar, String baz) {
34: init = 3;
35: }
36:
37: public MemberSwitchBean(int foo, String bar, double baz) {
38: init = 4;
39: }
40:
41: public MemberSwitchBean(int foo, short bar, long baz) {
42: init = 5;
43: }
44:
45: public MemberSwitchBean(int foo, String bar) {
46: init = 6;
47: }
48:
49: public int foo() {
50: return 0;
51: }
52:
53: public int foo(double foo) {
54: return 1;
55: }
56:
57: public int foo(int foo) {
58: return 2;
59: }
60:
61: public int foo(int foo, String bar, String baz) {
62: return 3;
63: }
64:
65: public int foo(int foo, String bar, double baz) {
66: return 4;
67: }
68:
69: public int foo(int foo, short bar, long baz) {
70: return 5;
71: }
72:
73: public int foo(int foo, String bar) {
74: return 6;
75: }
76:
77: public int bar() {
78: return 7;
79: }
80:
81: public int bar(double foo) {
82: return 8;
83: }
84:
85: int pkg() {
86: return 9;
87: }
88:
89: public static int staticMethod() {
90: return 10;
91: }
92: }
|