public class Test {
private int i;
public int nonstaticInt = 42;
public static int staticFieldInt = 42;
public static double staticFieldDouble = 42.5;
public static Test[] staticArrayObjects = null;
public static Object staticFieldObject = null;
public Test() {}
public Test(Integer i) { this.i = i; }
public Test(Integer i, String... other) { this.i = i; }
public int getInt() { return i; }
public int methodOverload(String a) { return 1; }
public int methodOverload(int a) { return 2; }
public int methodOverload(SuperClass a) { return a.getVal(); }
public static String staticMethod() { return "staticMethod called"; }
public static int staticMethod(int i) { return i + 1; }
public static void staticMethodThrows(Exception ex) throws Exception { throw ex; }
public void methodThrows(Exception ex) throws Exception { throw ex; }
public static void staticMethodThrowsNewException() throws Exception { throw new Exception("my exception"); }
public void methodThrowsNewException() throws Exception { throw new Exception("my exception"); }
public static int staticMethodOverload(String a) { return 1; }
public static int staticMethodOverload(int a) { return 2; }
public static int staticMethodOverload(SuperClass a) { return a.getVal(); }
public static String staticMethodCharArrayToString(char[] a) { return new String(a); }
public static String staticMethodLongToString(java.lang.Long l) { return l.toString(); }
public static long staticMethodReturnLong() { return java.lang.Long.MAX_VALUE; }
public static boolean static2Objects(Object o1, Object o2) { return o1.equals(o2); }
public static int staticByte(byte b) { return (int)b; }
public static int staticShort(short s) { return (int)s; }
public static int staticLong(long l) { return (int)l; }
public static double staticDouble(double s) { return s; }
public static float staticFloat(float s) { return s; }
public static int staticMethodAmbiguous(Double a) { return 1; }
public static int staticMethodAmbiguous(Integer a) { return 2; }
public static void staticMethodSetObject(Object obj) { staticFieldObject = obj; }
public static Object staticMethodGetObject() { return staticFieldObject; }
public int methodAmbiguous(Double a) { return 1; }
public int methodAmbiguous(Integer a) { return 2; }
public static String staticVarargs(Integer i, String... args) {
java.lang.StringBuilder result = new java.lang.StringBuilder();
result.append(i);
for(String arg : args) {
result.append(arg);
}
return result.toString();
}
public static String staticBigDecimalToString(java.math.BigDecimal bigDecimal) { return bigDecimal.toString(); }
public static int staticChar(char ch) { return (int)ch; }
public static short[] staticShortArray(Short[] arg) {
short[] b = new short[arg.length];
for(int i=0; i