1 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 bar, String baz) { init = 3; } 25 public MemberSwitchBean(int foo, String bar, double baz) { init = 4; } 26 public MemberSwitchBean(int foo, short bar, long baz) { init = 5; } 27 public MemberSwitchBean(int foo, String 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 bar, String baz) { return 3; } 33 public int foo(int foo, String bar, double baz) { return 4; } 34 public int foo(int foo, short bar, long baz) { return 5; } 35 public int foo(int foo, String 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 |